From e0e8c588e3e3ee5b9c74f323573cb7e95ef74d9d Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 5 Jul 2010 01:54:12 +0200 Subject: defaults.keys: improved "du" keybinding --- ranger/defaults/keys.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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', fm.hint("[*cdfhimpPs*] show_*h*idden *p*review_files "\ -- cgit 1.4.1-2-gfad0