Add :backtabopen command

This commit is contained in:
Florian Bruhin 2014-04-21 23:33:19 +02:00
parent 6ce415fc5e
commit 05e3fb8650

View File

@ -254,6 +254,11 @@ class TabbedBrowser(TabWidget):
if not background: if not background:
self.setCurrentWidget(tab) self.setCurrentWidget(tab)
@cmdutils.register(instance='mainwindow.tabs', maxsplit=0)
def backtabopen(self, url):
"""Open a new tab in background."""
self.tabopen(url, background=True)
@cmdutils.register(instance='mainwindow.tabs', hide=True) @cmdutils.register(instance='mainwindow.tabs', hide=True)
def tabopencur(self): def tabopencur(self):
"""Set the statusbar to :tabopen and the current URL. """Set the statusbar to :tabopen and the current URL.