From 7bbb18168d9ad8d5783621bdf1bb8516d14627e4 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 20 Jan 2010 01:43:59 +0100 Subject: clean up --- ranger/defaults/keys.py | 7 +++++-- 1 file 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 ')) -- cgit 1.4.1-2-gfad0