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"
 
n202'>202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327