From d65d3a6da55438a0b2c619d1218f8af50a0468aa Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 10 Aug 2011 12:41:18 +0200 Subject: container.tags: replaced the word "mark" with "tag" this is not very important, but I think it helps avoiding confusion since this code has to do with tagging and not with the completely different feature called "marking" --- ranger/core/actions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ranger/core/actions.py') diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 8cecf077..cb692d4c 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, mark='*'): + def tag_toggle(self, paths=None, value=None, movedown=None, tag=None): 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, mark=mark) + self.tags.add(*tags, tag=tag or self.tags.default_tag) elif value is False: self.tags.remove(*tags) else: - self.tags.toggle(*tags, mark=mark) + self.tags.toggle(*tags, tag=tag or self.tags.default_tag) if movedown is None: movedown = len(tags) == 1 and paths is None -- cgit 1.4.1-2-gfad0