summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/keys.py12
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())