summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-14 20:44:07 +0100
committerhut <hut@lavabit.com>2010-01-14 20:44:07 +0100
commit736b864bb05812900774e13dc0b7187b3aa525d4 (patch)
treeb0e594cbc93162c25efce0ab36ec69f41922d712
parenta799e0aeb7a73d6e5aec33fe100a9823faa3c91d (diff)
downloadranger-736b864bb05812900774e13dc0b7187b3aa525d4.tar.gz
keys: remove J/K as default binding for half-page-up/down
-rw-r--r--ranger/defaults/keys.py8
-rw-r--r--ranger/help/movement.py8
2 files changed, 9 insertions, 7 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 3846850e..029ffdeb 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -72,8 +72,8 @@ def initialize_commands(command_list):
 	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))
-	bind('J', ctrl('d'), fm.move_pointer_by_pages(0.5))
-	bind('K', ctrl('u'), fm.move_pointer_by_pages(-0.5))
+	bind(ctrl('d'), fm.move_pointer_by_pages(0.5))
+	bind(ctrl('u'), fm.move_pointer_by_pages(-0.5))
 
 	# --------------------------------------------------------- history
 	bind('H', fm.history_go(-1))
@@ -272,8 +272,8 @@ def _base_pager_commands(command_list):
 	bind(KEY_RIGHT, wdg.move_horizontal(relative=4))
 	bind(KEY_NPAGE, wdg.move(relative=1, pages=True))
 	bind(KEY_PPAGE, wdg.move(relative=-1, pages=True))
-	bind('J', ctrl('d'), wdg.move(relative=0.5, pages=True))
-	bind('K', ctrl('u'), wdg.move(relative=-0.5, pages=True))
+	bind(ctrl('d'), wdg.move(relative=0.5, pages=True))
+	bind(ctrl('u'), wdg.move(relative=-0.5, pages=True))
 
 	# ---------------------------------------------------------- others
 	bind('E', fm.edit_file())
diff --git a/ranger/help/movement.py b/ranger/help/movement.py
index 96461652..e5fb8a5e 100644
--- a/ranger/help/movement.py
+++ b/ranger/help/movement.py
@@ -25,13 +25,15 @@
 ==============================================================================
 1.1. Ranger has similar movement keys as vim:
 
+Note: A ^ stands for the Ctrl key.
+
 	k	move up
 	j	move down
 	h	move left (in browser: move one directory up)
 	l	move right (in browser: enter this directory, or run this file)
 
-	K	move half the screen up
-	J	move half the screen down
+	^U	move half the screen up
+	^D	move half the screen down
 	H	in browser: move back in history
 	L	in browser: move forward in history
 
@@ -41,7 +43,7 @@
 
 By prefixing a number, you can give more precise commands, eg:
 
-	2J	move 2 pages down
+	2^D	move 2 pages down
 	5gg	move to the 5th line
 	3h	move 3 characters to the left, or move 3 directories up
 	30%	move to 30% of the screen