about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-20 01:43:59 +0100
committerhut <hut@lavabit.com>2010-01-20 01:43:59 +0100
commit7bbb18168d9ad8d5783621bdf1bb8516d14627e4 (patch)
tree4b1dd533cf02df245099461dacceb7203dc9e862 /ranger
parent78a7d7628b5ee969ba47b440f287af02729fd827 (diff)
downloadranger-7bbb18168d9ad8d5783621bdf1bb8516d14627e4.tar.gz
clean up
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/keys.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 194f7746..23096e65 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -130,8 +130,11 @@ def initialize_commands(command_list):
 			arg.fm.sort(reverse=not arg.fm.settings.reverse))
 
 	# ----------------------------------------------- console shortcuts
-	bind('A', lambda arg: arg.fm.open_console(cmode.COMMAND,
-		'rename ' + arg.fm.env.cf.basename))
+	@bind("A")
+	def append_to_filename(arg):
+		command = 'rename ' + arg.fm.env.cf.basename
+		arg.fm.open_console(cmode.COMMAND, command)
+
 	bind('cw', fm.open_console(cmode.COMMAND, 'rename '))
 	bind('cd', fm.open_console(cmode.COMMAND, 'cd '))
 	bind('f', fm.open_console(cmode.COMMAND_QUICK, 'find '))