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
223'>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 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344