summaryrefslogtreecommitdiff
path: root/qutebrowser/components
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-01-27 15:17:16 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-01-27 15:17:16 +0100
commit8976e6850317881ed1aebed55a273e73c17a50bd (patch)
tree51a5e16053f77f1d3c46092657167d465240f316 /qutebrowser/components
parentac2576c61da6ac320bd85d2850f96d2cc59409b2 (diff)
downloadqutebrowser-8976e6850317881ed1aebed55a273e73c17a50bd.tar.gz
qutebrowser-8976e6850317881ed1aebed55a273e73c17a50bd.zip
Add deprecated aliases for renamed commands
See #6022, #6071
Diffstat (limited to 'qutebrowser/components')
-rw-r--r--qutebrowser/components/caretcommands.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/qutebrowser/components/caretcommands.py b/qutebrowser/components/caretcommands.py
index 8ab175012..7b1eb47ea 100644
--- a/qutebrowser/components/caretcommands.py
+++ b/qutebrowser/components/caretcommands.py
@@ -183,7 +183,7 @@ def move_to_end_of_document(tab: apitypes.Tab) -> None:
tab.caret.move_to_end_of_document()
-@cmdutils.register(modes=[cmdutils.KeyMode.caret])
+@cmdutils.register(modes=[cmdutils.KeyMode.caret], deprecated_name='toggle-selection')
@cmdutils.argument('tab', value=cmdutils.Value.cur_tab)
def selection_toggle(tab: apitypes.Tab, line: bool = False) -> None:
"""Toggle caret selection mode.
@@ -194,14 +194,14 @@ def selection_toggle(tab: apitypes.Tab, line: bool = False) -> None:
tab.caret.toggle_selection(line)
-@cmdutils.register(modes=[cmdutils.KeyMode.caret])
+@cmdutils.register(modes=[cmdutils.KeyMode.caret], deprecated_name='drop-selection')
@cmdutils.argument('tab', value=cmdutils.Value.cur_tab)
def selection_drop(tab: apitypes.Tab) -> None:
"""Drop selection and keep selection mode enabled."""
tab.caret.drop_selection()
-@cmdutils.register()
+@cmdutils.register(deprecated_name='follow-selected')
@cmdutils.argument('tab_obj', value=cmdutils.Value.cur_tab)
def selection_follow(tab_obj: apitypes.Tab, *, tab: bool = False) -> None:
"""Follow the selected text.
@@ -215,7 +215,7 @@ def selection_follow(tab_obj: apitypes.Tab, *, tab: bool = False) -> None:
raise cmdutils.CommandError(str(e))
-@cmdutils.register(modes=[cmdutils.KeyMode.caret])
+@cmdutils.register(modes=[cmdutils.KeyMode.caret], deprecated_name='reverse-selection')
@cmdutils.argument('tab', value=cmdutils.Value.cur_tab)
def selection_reverse(tab: apitypes.Tab) -> None:
"""Swap the stationary and moving end of the current selection."""