summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-14 19:56:58 +0100
committerhut <hut@lavabit.com>2010-03-09 14:40:07 +0100
commitdd249864e9f2d0a80655c64b23d7b074740798a7 (patch)
tree3afc8233f7d6ad20403254ca0c3b742d64e6e7c3 /ranger
parentbd8ef7647b3c35d8989a52008885f270ec6f0864 (diff)
downloadranger-dd249864e9f2d0a80655c64b23d7b074740798a7.tar.gz
custom: added ] key: tag next and run
Diffstat (limited to 'ranger')
-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())
> 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180