diff options
author | hut <hut@lavabit.com> | 2013-04-20 15:04:17 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-04-20 15:04:17 +0200 |
commit | 56278294cf6e50f70918bd47e6c1a58e1d050e7f (patch) | |
tree | da00a4cc11c94653052f66e2343170cc9cb547d5 /ranger/config/commands.py | |
parent | 63b6a8281b9e3e601d4a34819ed1622a7b40c243 (diff) | |
download | ranger-56278294cf6e50f70918bd47e6c1a58e1d050e7f.tar.gz |
config/commands: implemented :setintag <tags> <option>=<value>
Diffstat (limited to 'ranger/config/commands.py')
-rw-r--r-- | ranger/config/commands.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 2d830a0f..4d290e7e 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -368,6 +368,18 @@ class setlocal(set_): self.fm.set_option_from_string(name, value, localpath=path) +class setintag(setlocal): + """:setintag <tag or tags> <option name>=<option value> + + Sets an option for directories that are tagged with a specific tag. + """ + def execute(self): + tags = self.arg(1) + self.shift() + name, value, _ = self.parse_setting_line() + self.fm.set_option_from_string(name, value, tags=tags) + + class quit(Command): """:quit |