diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-04-14 21:08:06 +0200 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-04-14 21:12:13 +0200 |
commit | 03cb07a5707436dbb4a588ca1b9bb324ecfba808 (patch) | |
tree | b74faf03e0fbd0908a127f70d8222046e6e6de3d | |
parent | cb733994217664a27a394fa501d5bf13381fe62e (diff) | |
download | ranger-03cb07a5707436dbb4a588ca1b9bb324ecfba808.tar.gz |
core.actions: Simplify the usage of :tag_toggle
Now it's possible to call :tag_toggle with tag as the positional argument (:tag_toggle X), not only by name (:tag_toggle tag=X). All our usage of tag_toggle() is done with named arguments so there shouldn't be any internal breakage.
-rw-r--r-- | ranger/core/actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 92d36afc..6e37aded 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -872,7 +872,7 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m # Tags are saved in ~/.config/ranger/tagged and simply mark if a # file is important to you in any context. - def tag_toggle(self, paths=None, value=None, movedown=None, tag=None): + def tag_toggle(self, tag=None, paths=None, value=None, movedown=None): """:tag_toggle <character> Toggle a tag <character>. |