From f1ddf58260936ecdcb2932997d5ac8955ebc6ee8 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 17 Oct 2017 10:28:28 +0200 Subject: [PATCH] Add a deprecated :tab-detach --- doc/changelog.asciidoc | 6 +++--- qutebrowser/browser/commands.py | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index db84d803e..bd29784fe 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -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 diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 0575d01d2..2983bbd02 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -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