aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/config
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2010-11-24 21:56:44 -0700
committerGravatar Brendan Taylor <whateley@gmail.com>2010-11-24 21:56:44 -0700
commit518004933b6d110d2a6d140f86c759dd4e713607 (patch)
tree91509f2b71ffb2eea729cee5761d328f8cebc22e /examples/config
parentb5b38b968697becad4034b5803d39ff6c78aa107 (diff)
add a new keybinding 'w' that opens a new window or tab
Diffstat (limited to 'examples/config')
-rw-r--r--examples/config/config5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/config/config b/examples/config/config
index 8189479..855f7c2 100644
--- a/examples/config/config
+++ b/examples/config/config
@@ -47,7 +47,7 @@ set authentication_handler = sync_spawn @scripts_dir/auth.py
# === Dynamic event handlers =================================================
# Open link in new window
-@on_event NEW_WINDOW sh 'uzbl-browser -u "$8"' %r
+@on_event NEW_WINDOW sh 'uzbl-browser ${8:+-u "$8"}' %r
# Open in current window
#@on_event NEW_WINDOW uri %s
# Open in new tab
@@ -189,6 +189,9 @@ set ebind = @mode_bind global,-insert
# a colon.
@cbind :_ = %s
+# open a new window or a new tab (see the on_event NEW_WINDOW settings above)
+@cbind w = event NEW_WINDOW
+
# Page movement binds
@cbind j = scroll vertical 20
@cbind k = scroll vertical -20