Add a deprecated :tab-detach
This commit is contained in:
parent
f84af0a6fb
commit
f1ddf58260
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user