summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-24 21:41:27 +0100
committerhut <hut@lavabit.com>2010-01-24 21:41:27 +0100
commite0dd4b005b74817f1c1f9fe63c2f6eee72efee9c (patch)
treed958e9359061e7c5f79780e64f9094fba569f57c
parent6b1aaadeab5bac3f039b165fb21a0fdec3e45aca (diff)
downloadranger-e0dd4b005b74817f1c1f9fe63c2f6eee72efee9c.tar.gz
keys: let l and Enter do the same
-rw-r--r--ranger/defaults/keys.py4
-rw-r--r--ranger/help/starting.py3
2 files changed, 2 insertions, 5 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 0a03b876..211c0d2d 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -59,7 +59,7 @@ def initialize_commands(command_list):
 
 	bind(KEY_DOWN, fm.move_pointer(relative=1))
 	bind(KEY_UP, fm.move_pointer(relative=-1))
-	bind(KEY_RIGHT, fm.move_right())
+	bind(KEY_RIGHT, KEY_ENTER, ctrl('j'), fm.move_right())
 	bind(KEY_LEFT, KEY_BACKSPACE, DEL, fm.move_left(1))
 	bind(KEY_HOME, fm.move_pointer(absolute=0))
 	bind(KEY_END, fm.move_pointer(absolute=-1))
@@ -67,8 +67,6 @@ def initialize_commands(command_list):
 	bind(KEY_HOME, fm.move_pointer(absolute=0))
 	bind(KEY_END, fm.move_pointer(absolute=-1))
 
-	bind(KEY_ENTER, ctrl('j'), fm.move_right(mode=1))
-
 	bind('%', fm.move_pointer_by_percentage(absolute=50))
 	bind(KEY_NPAGE, fm.move_pointer_by_pages(1))
 	bind(KEY_PPAGE, fm.move_pointer_by_pages(-1))
diff --git a/ranger/help/starting.py b/ranger/help/starting.py
index f4d5cb93..a95a4312 100644
--- a/ranger/help/starting.py
+++ b/ranger/help/starting.py
@@ -29,7 +29,6 @@ While highlighting a file, press the "l" key to fire up the automatic
 filetype detection mechanism and attempt to start the file.
 
 	l	run the selection
-	<Enter>	run the selection with "mode 1" (see 2.2.)
 	r	open the "open with" prompt
 
 Note: The selection means, if there are marked files in this directory,
@@ -79,7 +78,7 @@ gives you 2 ways of opening a video (by default):
 	1	windowed
 
 By specifying a mode, you can select one of those.  The "l" key will
-start a file in mode 0, <Enter> or ^J will start it in mode 1.
+start a file in mode 0.
 You can specify a mode in the "open with" console by simply adding
 the number.  Eg: "open with: mplayer 1" or "open with: 1"