diff options
author | keis <keijser@gmail.com> | 2009-10-16 19:07:22 +0200 |
---|---|---|
committer | keis <keijser@gmail.com> | 2009-10-16 19:07:22 +0200 |
commit | 4ec1c9c63c6b06657d515e03fcf9df05c4232dcc (patch) | |
tree | 435eae088496dc4928ced9d309c6a3366cc7a06c /examples | |
parent | c72d5528f7391e8d99daf918b7e3c5c0a4ef9c97 (diff) |
Update example config with cmd-edit bindings.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/config/uzbl/config | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config index e002178..d3f7cca 100644 --- a/examples/config/uzbl/config +++ b/examples/config/uzbl/config @@ -179,11 +179,30 @@ set formfiller = spawn @scripts_dir/formfiller # Prints tab separated "uri title keyword tags" to the bookmarks file. # TODO: Improve bookmarks script to handle this format & include date in bookmark format. -@bind <Ctrl>b<name:>_<tags:>_ = sh 'echo -e "$6 $7 %s %s" >> $XDG_DATA_HOME/uzbl/bookmarks' +@bind <Ctrl><b><name:>_<tags:>_ = sh 'echo -e "$6 $7 %s %s" >> $XDG_DATA_HOME/uzbl/bookmarks' # Multi-stage bindings with blank prompts (similar behaviour to emacs M-c M-s bindings?) -@bind <Ctrl>a<:>q = exit -@bind <Ctrl>a<:>h = uri http://uzbl.org/ +@bind <Ctrl><a><:><Ctrl><q> = exit +@bind <Ctrl><a><:><Ctrl><h> = uri http://uzbl.org/ + + +# === command editing configuration ========================================== + +# you'll want this at the very least +@bind <Return> = request KEYCMD_EXEC_CURRENT + +# basic searching +@bind <Home> = request SET_CURSOR_POS 0 +@bind <End> = request SET_CURSOR_POS -1 +@bind <Left> = request SET_CURSOR_POS - +@bind <Right> = request SET_CURSOR_POS + +@bind <BackSpace> = request KEYCMD_BACKSPACE + +# readline-ish bindings +@bind <Ctrl><w> = request KEYCMD_STRIP_WORD +@bind <Ctrl><u> = request SET_KEYCMD +@bind <Ctrl><a> = request SET_CURSOR_POS 0 +@bind <Ctrl><e> = request SET_CURSOR_POS -1 # === Mode configuration ===================================================== @@ -220,7 +239,7 @@ set default_mode = command set toggle_cmd_ins = @toggle_modes command insert @bind i = @toggle_cmd_ins -@bind <Ctrl>i = @toggle_cmd_ins +@bind <Ctrl><i> = @toggle_cmd_ins # === Post-load misc commands =============================================== |