diff options
author | Mason Larobina <mason.larobina@gmail.com> | 2010-03-11 17:27:01 +0800 |
---|---|---|
committer | Mason Larobina <mason.larobina@gmail.com> | 2010-03-11 17:27:01 +0800 |
commit | 5aa9a876c8a0e6812a1ca2217227f99e24635f6e (patch) | |
tree | 9d49b284b269a91146235da9874d4f3d3f67a239 | |
parent | 3b8249493fdb4ed2325d8d5371cebda5c6a98bf4 (diff) |
Replace all @'s in uri's from xclip with %40 to avoid expansion.
-rw-r--r-- | examples/config/config | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/config/config b/examples/config/config index ae97443..e01611e 100644 --- a/examples/config/config +++ b/examples/config/config @@ -186,7 +186,7 @@ set ebind = @mode_bind global,-insert # === Mouse bindings ========================================================= # Middle click open in new window -@bind <Button2> = sh 'if [ "\@SELECTED_URI" ]; then uzbl-browser -u "\@SELECTED_URI"; else echo "uri $(xclip -o)" > $4; fi' +@bind <Button2> = sh 'if [ "\@SELECTED_URI" ]; then uzbl-browser -u "\@SELECTED_URI"; else echo "uri $(xclip -o | sed s/\\\@/%40/g)" > $4; fi' # === Keyboard bindings ====================================================== @@ -238,7 +238,7 @@ set ebind = @mode_bind global,-insert @cbind gN = event NEW_TAB_NEXT @cbind go<uri:>_ = event NEW_TAB %s @cbind gO<uri:>_ = event NEW_TAB_NEXT %s -@cbind gY = sh 'echo "event NEW_TAB `xclip -selection primary -o`" > $4' +@cbind gY = sh 'echo "event NEW_TAB `xclip -selection primary -o | sed s/\\\@/%40/g`" > $4' # Closing / resting @cbind gC = exit @cbind gQ = event CLEAN_TABS @@ -296,9 +296,9 @@ set toggle_cmd_ins = @toggle_modes command insert @cbind yy = sh 'echo -n $7 | xclip' # Go the page from primary selection -@cbind p = sh 'echo "uri `xclip -selection primary -o`" > $4' +@cbind p = sh 'echo "uri `xclip -selection primary -o | sed s/\\\@/%40/g`" > $4' # Go to the page in clipboard -@cbind P = sh 'echo "uri `xclip -selection clipboard -o`" > $4' +@cbind P = sh 'echo "uri `xclip -selection clipboard -o | sed s/\\\@/%40/g`" > $4' # Start a new uzbl instance from the page in primary selection @cbind 'p = sh 'exec uzbl-browser --uri $(xclip -o)' |