summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-26 18:41:39 +0100
committerhut <hut@lavabit.com>2010-01-26 18:41:39 +0100
commit59ae64bb2c8f7a61e95dd7029b44f6a2cc50f931 (patch)
tree289508c3ac05e69a8c548a256f254f0d05acf1cf /ranger
parentf58d444550a11c8765bc882debe79127ae9afdd1 (diff)
downloadranger-59ae64bb2c8f7a61e95dd7029b44f6a2cc50f931.tar.gz
keys: less-like shortcuts in pager
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/keys.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 24c35648..c800c795 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -273,6 +273,10 @@ def _base_pager_commands(command_list):
 	bind('E', fm.edit_file())
 	bind('?', fm.display_help())
 
+	# --------------------------------------------- less-like shortcuts
+	alias(KEY_NPAGE, 'd')
+	alias(KEY_PPAGE, 'u')
+
 
 def _system_functions(command_list):
 	# Each commandlist should have this bindings