From 518004933b6d110d2a6d140f86c759dd4e713607 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Wed, 24 Nov 2010 21:56:44 -0700 Subject: add a new keybinding 'w' that opens a new window or tab --- examples/config/config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/config') 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 -- cgit v1.2.3