aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mason Larobina <mason.larobina@gmail.com>2009-12-23 01:07:54 +0800
committerGravatar Mason Larobina <mason.larobina@gmail.com>2009-12-23 01:07:54 +0800
commit49941155e43eb520c43b02b55e0bbced2b657cf6 (patch)
tree2eecdfb2f61e322c7de0289982b135bad1bd179a
parentf2cf5d4ecfdc85b9830ce1f2d78044d2419374b0 (diff)
Unified yank bind.
-rw-r--r--examples/config/uzbl/config4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config
index ce75ecd..9dc4a35 100644
--- a/examples/config/uzbl/config
+++ b/examples/config/uzbl/config
@@ -262,8 +262,8 @@ set toggle_cmd_ins = @toggle_modes command insert
@cbind gh = uri http://www.uzbl.org
# --- Yanking & pasting binds ---
-@cbind y<Yank:>url = sh 'echo -n $6 | xclip'
-@cbind y<Yank:>title = sh 'echo -n $7 | xclip'
+@cbind y<Yank (t)itle or (u)rl:>* = @jsh if('%s' == 'u') { run("sh 'echo -n $6 | xclip'"); } else if('%s' == 't') { run("sh 'echo -n $7 | xclip'"); }; run('event SET_KEYCMD');
+
# Go the page from primary selection
@cbind p = sh 'echo "uri `xclip -selection primary -o`" > $4'
# Go to the page in clipboard