aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mason Larobina <mason.larobina@gmail.com>2010-01-24 23:14:53 +0800
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2010-01-25 21:40:37 +0100
commit7c3e3aa0c8486e3cc38b70762eff34d7999845b7 (patch)
tree218b42e532794da8c9352335b45d9e3e62a2de48
parent3858eef5a9f12a6784441e5117cf80e157486b3b (diff)
Default follow keys to numbers and fix follower script argument order.
-rw-r--r--examples/config/config5
-rw-r--r--examples/data/scripts/follow.js7
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/config/config b/examples/config/config
index 5eaf07a..3730960 100644
--- a/examples/config/config
+++ b/examples/config/config
@@ -310,10 +310,11 @@ set toggle_cmd_ins = @toggle_modes command insert
# --- Link following (similar to vimperator and konqueror) ---
# Set custom keys you wish to use for navigation. Some common examples:
-set follow_hint_keys = qwerty
+set follow_hint_keys = 0123456789
+#set follow_hint_keys = qwerty
#set follow_hint_keys = asdfghjkl;
#set follow_hint_keys = thsnd-rcgmvwb/;789aefijkopquxyz234
-@cbind f* = script @scripts_dir/follow.js '%s @{follow_hint_keys}'
+@cbind f* = script @scripts_dir/follow.js '@{follow_hint_keys} %s'
# --- Form filler binds ---
# this script allows you to configure (per domain) values to fill in form
diff --git a/examples/data/scripts/follow.js b/examples/data/scripts/follow.js
index 12b3765..afb327f 100644
--- a/examples/data/scripts/follow.js
+++ b/examples/data/scripts/follow.js
@@ -263,8 +263,7 @@ function followLinks(follow) {
}
}
-//Parse input: first argument is user input, second is defined hint keys.
+//Parse input: first argument is follow keys, second is user input.
var args = '%s'.split(' ');
-var charset = args[1];
-
-followLinks(args[0]);
+var charset = args[0];
+followLinks(args[1]);