diff options
author | hut <hut@lavabit.com> | 2010-01-20 01:43:59 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-20 01:43:59 +0100 |
commit | 7bbb18168d9ad8d5783621bdf1bb8516d14627e4 (patch) | |
tree | 4b1dd533cf02df245099461dacceb7203dc9e862 | |
parent | 78a7d7628b5ee969ba47b440f287af02729fd827 (diff) | |
download | ranger-7bbb18168d9ad8d5783621bdf1bb8516d14627e4.tar.gz |
clean up
-rw-r--r-- | ranger/defaults/keys.py | 7 |
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 ')) |