diff options
author | hut <hut@lavabit.com> | 2010-01-14 19:56:58 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-03-09 14:40:07 +0100 |
commit | dd249864e9f2d0a80655c64b23d7b074740798a7 (patch) | |
tree | 3afc8233f7d6ad20403254ca0c3b742d64e6e7c3 | |
parent | bd8ef7647b3c35d8989a52008885f270ec6f0864 (diff) | |
download | ranger-dd249864e9f2d0a80655c64b23d7b074740798a7.tar.gz |
custom: added ] key: tag next and run
-rw-r--r-- | ranger/defaults/keys.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index ee6a7802..802574c2 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -185,6 +185,18 @@ def initialize_commands(command_list): bind('?', KEY_F1, fm.display_help()) bind('w', lambda arg: arg.fm.ui.open_taskview()) + # ---------------------------------------------------------- custom + # This is useful to track watched episode of a series. + @bind(']') + def tag_next_and_run(arg): + fm = arg.fm + fm.tag_remove() + fm.tag_remove(movedown=False) + fm.tag_toggle() + fm.move_pointer(relative=-2) + fm.move_right() + fm.move_pointer(relative=1) + # ------------------------------------------------ system functions _system_functions(command_list) bind('ZZ', fm.exit()) |