diff options
author | David Pugnasse <david.pugnasse@gmail.com> | 2011-08-10 00:14:09 +0200 |
---|---|---|
committer | David Pugnasse <david.pugnasse@gmail.com> | 2011-08-10 00:14:09 +0200 |
commit | dc91c2868201bee8bb3bbbaae3618a2a2b9ebdde (patch) | |
tree | c2b6e7087c4fc49ed3c006fe8a46c9e406ed3ba5 /ranger/core/actions.py | |
parent | ad7add321b2d9f6dd499c9511eda5dc865a11252 (diff) | |
download | ranger-dc91c2868201bee8bb3bbbaae3618a2a2b9ebdde.tar.gz |
Custom tags
Allows to mark a file with a custom character.
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 89bd9389..8cecf077 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -430,7 +430,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): # 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): + def tag_toggle(self, paths=None, value=None, movedown=None, mark='*'): if not self.tags: return if paths is None: @@ -438,11 +438,11 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): else: tags = [realpath(path) for path in paths] if value is True: - self.tags.add(*tags) + self.tags.add(*tags, mark=mark) elif value is False: self.tags.remove(*tags) else: - self.tags.toggle(*tags) + self.tags.toggle(*tags, mark=mark) if movedown is None: movedown = len(tags) == 1 and paths is None |