cleanup configs wrt link following
authorDieter Plaetinck <dieter@plaetinck.be>
Thu, 21 May 2009 07:11:40 +0000 (09:11 +0200)
committerDieter Plaetinck <dieter@plaetinck.be>
Thu, 21 May 2009 07:11:40 +0000 (09:11 +0200)
examples/configs/sampleconfig
examples/configs/sampleconfig-dev

index 732a029..312ab91 100644 (file)
@@ -105,9 +105,17 @@ bind    S         = js alert("hi");
 # quotes and escape any inner quotes using backslashes
 bind    XS        = sh 'echo "act script alert (\'This is sent by the shell via a fifo\')" > "$4"'
 
-# Linkfollowing now in one script, very Vimperator alike. 
-# In examples/scripts will be different approaches. Here the most stable one:
-bind    f* = script /usr/share/uzbl/examples/scripts/follow_Numbers.js %s
+
+# we ship some javascripts to do keyboard based link hinting/following.  (webkit does not have C DOM bindings yet)
+# this is similar to how it works in vimperator (and konqueror)
+# TODO: did we resolve: "no click() event for hyperlinks so no referrer set" ?
+#hit F to toggle the Hints (now in form of link numbering)
+bind    F = script /usr/share/uzbl/examples/scripts/hint.js
+# the most stable version:
+bind    fl* = script /usr/share/uzbl/examples/scripts/follow_Numbers.js %s
+# using strings, not polished yet:
+bind    fL* = script /usr/share/uzbl/examples/scripts/follow_Numbers_Strings.js %s
+
 
 # "home" page if you will
 set uri = uzbl.org
index d20e98b..c1b136c 100644 (file)
@@ -110,11 +110,16 @@ bind    S         = js alert("hi");
 # path, fifo & socket dirs, etc.)
 bind    XS        = sh 'echo "act script alert (\\"This is sent by the shell via a fifo\\")" > "$4"'
 
-# Keyboard based link following: work in progress! No C DOM bindings yet, no click() event for hyperlinks so no referrer set..Quite basic but does the job for now...
+
+# we ship some javascripts to do keyboard based link hinting/following.  (webkit does not have C DOM bindings yet)
+# this is similar to how it works in vimperator (and konqueror)
+# TODO: did we resolve: "no click() event for hyperlinks so no referrer set" ?
 #hit F to toggle the Hints (now in form of link numbering)
-bind    F= script ./examples/scripts/hint.js
-#hit f followed by linknumber and ENTER to follow that link
-bind    f_        = js window.location = document.links[%s].href;
+bind    F = script ./examples/scripts/hint.js
+# the most stable version:
+bind    fl* = script ./examples/scripts/follow_Numbers.js %s
+# using strings, not polished yet:
+bind    fL* = script ./examples/scripts/follow_Numbers_Strings.js %s
 
 # "home" page if you will
 set uri = uzbl.org