From 49941155e43eb520c43b02b55e0bbced2b657cf6 Mon Sep 17 00:00:00 2001 From: Mason Larobina Date: Wed, 23 Dec 2009 01:07:54 +0800 Subject: Unified yank bind. --- examples/config/uzbl/config | 4 ++-- 1 file 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 yurl = sh 'echo -n $6 | xclip' -@cbind ytitle = sh 'echo -n $7 | xclip' +@cbind y* = @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 -- cgit v1.2.3