summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-05-18 00:17:19 +0200
committerhut <hut@lavabit.com>2010-05-18 00:17:19 +0200
commitc512259aec5a7abdbcec48a3c20cb2a0982c4d65 (patch)
tree76011d4ca2563ef630d66428fce7e64618d9c693 /ranger
parentc1a50251bb483933f773f035f1684791a5697452 (diff)
downloadranger-c512259aec5a7abdbcec48a3c20cb2a0982c4d65.tar.gz
defaults.keys: added/fixed readline keybindings in console
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/keys.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 8ecb50b8..f3ac0032 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -363,16 +363,16 @@ map.merge(readline_aliases)
 
 map('<up>', '<C-P>', wdg.history_move(-1))
 map('<down>', '<C-N>', wdg.history_move(1))
-map('<home>', wdg.move(right=0, absolute=True))
-map('<end>', wdg.move(right=-1, absolute=True))
+map('<home>', '<C-A>', wdg.move(right=0, absolute=True))
+map('<end>', '<C-E>', wdg.move(right=-1, absolute=True))
 map('<tab>', wdg.tab())
 map('<s-tab>', wdg.tab(-1))
 map('<C-C>', '<C-D>', '<ESC>', wdg.close())
 map('<CR>', '<c-j>', wdg.execute())
 map('<F1>', lambda arg: arg.fm.display_command_help(arg.wdg))
 
-map('<backspace>', wdg.delete(-1))
-map('<delete>', wdg.delete(0))
+map('<backspace>', '<C-H>', wdg.delete(-1))
+map('<delete>', '<C-D>', wdg.delete(0))
 map('<C-W>', wdg.delete_word())
 map('<C-K>', wdg.delete_rest(1))
 map('<C-U>', wdg.delete_rest(-1))