summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-07-05 01:54:12 +0200
committerhut <hut@lavabit.com>2010-07-05 01:54:12 +0200
commite0e8c588e3e3ee5b9c74f323573cb7e95ef74d9d (patch)
tree940607dbab8861243409c850170a7f043aa2997a /ranger
parentc9f479ab1a2f8df056a27c388ec2a9791b8bca8f (diff)
downloadranger-e0e8c588e3e3ee5b9c74f323573cb7e95ef74d9d.tar.gz
defaults.keys: improved "du" keybinding
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/keys.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index c95baed9..ce595be6 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -181,7 +181,8 @@ map('ud', 'uy', fm.uncut())
 # ---------------------------------------------------- run programs
 map('S', fm.execute_command(os.environ['SHELL']))
 map('E', fm.edit_file())
-map('du', fm.execute_command('du --max-depth=1 -h | less'))
+map('du', fm.execute_console('p!du --max-depth=1 -h --apparent-size',
+	cmode.OPEN))
 
 # -------------------------------------------------- toggle options
 map('z<bg>', fm.hint("[*cdfhimpPs*] show_*h*idden *p*review_files "\