aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Gustavo Chaín <g@0xff.cl>2010-08-25 17:41:47 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2010-08-25 17:43:30 +0200
commit86729383c1aa931b0793118eb5853955583e9391 (patch)
tree228110d6b6c6de26390a874c3821e9102eeae2dc
parent9dbb122bd519e72afd14c3017a0323ec586dbe72 (diff)
add newbg command, to open a new tab in the background
-rw-r--r--AUTHORS1
-rwxr-xr-xexamples/data/scripts/uzbl-tabbed8
2 files changed, 9 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 2ed9117..3b3e241 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -39,6 +39,7 @@ In alphabetical order:
Dmytro Milinevskyy - uzbl-tabbed useability patches
Dusan Popovic (dusanx) - many contributions to early uzbl
Evgeny Grablyk - libsoup settings
+ Gustavo Chaín <g@0xff.cl> - newbg command
Gregor Uhlenheuer (kongo2002) <kongo2002@googlemail.com> - uzbl vim syntax & related files
Helmut Grohne (helmut) - move void **ptr to union, various fixes
Henri Kemppainen (DuClare) <email is akarinotengoku AT THE DOMAIN OF gmail.com> - many contributions, mostly old handler code
diff --git a/examples/data/scripts/uzbl-tabbed b/examples/data/scripts/uzbl-tabbed
index 5bf802a..42837d3 100755
--- a/examples/data/scripts/uzbl-tabbed
+++ b/examples/data/scripts/uzbl-tabbed
@@ -847,6 +847,8 @@ class UzblTabbed:
# Commands ( [] = optional, {} = required )
# new [uri]
# open new tab and head to optional uri.
+ # newbg [uri]
+ # open a new tab in the background
# close [tab-num]
# close current tab or close via tab id.
# next [n-tabs]
@@ -875,6 +877,12 @@ class UzblTabbed:
else:
self.new_tab()
+ elif cmd[0] == "newbg":
+ if len(cmd) == 2:
+ self.new_tab(cmd[1], switch=False)
+ else:
+ self.new_tab(switch=False)
+
elif cmd[0] == "newfromclip":
uri = subprocess.Popen(['xclip','-selection','clipboard','-o'],\
stdout=subprocess.PIPE).communicate()[0]