diff options
author | Mason Larobina <mason.larobina@gmail.com> | 2010-01-24 23:14:53 +0800 |
---|---|---|
committer | Mason Larobina <mason.larobina@gmail.com> | 2010-01-24 23:14:53 +0800 |
commit | 5ade8b362a571ce1c1411bbaf1a779d58a2a616b (patch) | |
tree | 636ff02148a378a1192e5043024479a6e6083d0c | |
parent | f8165c88662936b072303803d6038f26124faccd (diff) |
Default follow keys to numbers and fix follower script argument order.
-rw-r--r-- | examples/config/config | 5 | ||||
-rw-r--r-- | examples/data/scripts/follow.js | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/config/config b/examples/config/config index a2cbdcb..b376d0b 100644 --- a/examples/config/config +++ b/examples/config/config @@ -309,10 +309,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]); |