diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-01-20 14:40:23 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-01-20 18:00:38 +0100 |
commit | 6e03a22482079bd7d87438406956aac5f47b20c0 (patch) | |
tree | eb19261aafc13a297572c28ad1ee1296895c6218 /qutebrowser/components | |
parent | 7146c18183e9eadfee2d7a9e7af21b183e207fdd (diff) | |
download | qutebrowser-6e03a22482079bd7d87438406956aac5f47b20c0.tar.gz qutebrowser-6e03a22482079bd7d87438406956aac5f47b20c0.zip |
Rename selection commands
See #6022
Diffstat (limited to 'qutebrowser/components')
-rw-r--r-- | qutebrowser/components/caretcommands.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qutebrowser/components/caretcommands.py b/qutebrowser/components/caretcommands.py index 966b193de..45c9516b6 100644 --- a/qutebrowser/components/caretcommands.py +++ b/qutebrowser/components/caretcommands.py @@ -185,7 +185,7 @@ def move_to_end_of_document(tab: apitypes.Tab) -> None: @cmdutils.register(modes=[cmdutils.KeyMode.caret]) @cmdutils.argument('tab', value=cmdutils.Value.cur_tab) -def toggle_selection(tab: apitypes.Tab, line: bool = False) -> None: +def selection_toggle(tab: apitypes.Tab, line: bool = False) -> None: """Toggle caret selection mode. Args: @@ -196,14 +196,14 @@ def toggle_selection(tab: apitypes.Tab, line: bool = False) -> None: @cmdutils.register(modes=[cmdutils.KeyMode.caret]) @cmdutils.argument('tab', value=cmdutils.Value.cur_tab) -def drop_selection(tab: apitypes.Tab) -> None: +def selection_drop(tab: apitypes.Tab) -> None: """Drop selection and keep selection mode enabled.""" tab.caret.drop_selection() @cmdutils.register() @cmdutils.argument('tab_obj', value=cmdutils.Value.cur_tab) -def follow_selected(tab_obj: apitypes.Tab, *, tab: bool = False) -> None: +def selection_follow(tab_obj: apitypes.Tab, *, tab: bool = False) -> None: """Follow the selected text. Args: @@ -217,6 +217,6 @@ def follow_selected(tab_obj: apitypes.Tab, *, tab: bool = False) -> None: @cmdutils.register(modes=[cmdutils.KeyMode.caret]) @cmdutils.argument('tab', value=cmdutils.Value.cur_tab) -def reverse_selection(tab: apitypes.Tab) -> None: +def selection_reverse(tab: apitypes.Tab) -> None: """Swap the stationary and moving end of the current selection.""" tab.caret.reverse_selection() |