From 5931675528cd29642987512acbc08142d5699f6a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 13 Apr 2011 22:16:52 -0400 Subject: Add binding for going to the uri of a target Also ports old commands to new structure. --- examples/config/config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/config') diff --git a/examples/config/config b/examples/config/config index d049f0e..b8312e5 100644 --- a/examples/config/config +++ b/examples/config/config @@ -343,8 +343,9 @@ set follow_hint_keys = 0123456789 #set follow_hint_keys = qwerty #set follow_hint_keys = asdfghjkl; #set follow_hint_keys = thsnd-rcgmvwb/;789aefijkopquxyz234 -@cbind fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 0) >\@ -@cbind Fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 1) >\@ +@cbind fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'click') >\@ +@cbind Fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'newwindow') >\@ +@cbind fL* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'returnuri') >\@ set @cbind fi = spawn @scripts_dir/go_input.sh # Form filler binds -- cgit v1.2.3 From a4ec13b670c5e27483aa388a1ef03a15b8bba935 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 20 Apr 2011 21:29:48 -0400 Subject: Add binding to copy a link to the clipboard --- examples/config/config | 1 + examples/data/scripts/follow.sh | 3 +++ 2 files changed, 4 insertions(+) (limited to 'examples/config') diff --git a/examples/config/config b/examples/config/config index b8312e5..8ed533f 100644 --- a/examples/config/config +++ b/examples/config/config @@ -346,6 +346,7 @@ set follow_hint_keys = 0123456789 @cbind fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'click') >\@ @cbind Fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'newwindow') >\@ @cbind fL* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'returnuri') >\@ set +@cbind FL* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'returnuri') >\@ clipboard @cbind fi = spawn @scripts_dir/go_input.sh # Form filler binds diff --git a/examples/data/scripts/follow.sh b/examples/data/scripts/follow.sh index 01a4f91..262aec3 100755 --- a/examples/data/scripts/follow.sh +++ b/examples/data/scripts/follow.sh @@ -23,5 +23,8 @@ case "$result" in set) printf 'uri '"$uri"'\nset mode=\nevent KEYCMD_CLEAR\n' > "$UZBL_FIFO" ;; + clipboard) + printf "$uri" | xclip + ;; esac esac -- cgit v1.2.3