Add a deprecated :tab-detach

This commit is contained in:
Florian Bruhin 2017-10-17 10:28:28 +02:00
parent f84af0a6fb
commit f1ddf58260
2 changed files with 9 additions and 3 deletions

View File

@ -33,10 +33,10 @@ Fixed
- More consistent sizing for favicons with vertical tabs.
Removed
~~~~~~~
Deprecated
~~~~~~~~~~
- `:tab-detach` has been removed, as `:tab-give` without argument can be used
- `:tab-detach` has been deprecated, as `:tab-give` without argument can be used
instead.
v1.0.2

View File

@ -557,6 +557,12 @@ class CommandDispatcher:
tabbed_browser.tabopen(self._current_url())
self._tabbed_browser.close_tab(self._current_widget(), add_undo=False)
@cmdutils.register(instance='command-dispatcher', hide=True, scope='window',
deprecated='Use :tab-give instead!')
def tab_detach(self):
"""Deprecated way to detach a tab."""
self.tab_give()
def _back_forward(self, tab, bg, window, count, forward):
"""Helper function for :back/:forward."""
history = self._current_widget().history