From dd249864e9f2d0a80655c64b23d7b074740798a7 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 14 Jan 2010 19:56:58 +0100 Subject: custom: added ] key: tag next and run --- ranger/defaults/keys.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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()) -- cgit 1.4.1-2-gfad0