From d6928df8e8ace9d3aac233e1074f85fe5ca5bc85 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 1 Apr 2010 01:43:59 +0200 Subject: Change settings with z rather than with b This is more vim-like and intuitive --- ranger/defaults/keys.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index eed77db4..6b0948aa 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -107,15 +107,16 @@ def initialize_commands(map): map('du', fm.execute_command('du --max-depth=1 -h | less')) # -------------------------------------------------- toggle options - map('b', hint="show_//h//idden //p//review_files //d//irectories_first " \ + map('b', fm.notify('Warning: settings are now changed with z!', bad=True)) + map('z', hint="show_//h//idden //p//review_files //d//irectories_first " \ "//c//ollapse_preview flush//i//nput ca//s//e_insensitive") - map('bh', fm.toggle_boolean_option('show_hidden')) - map('bp', fm.toggle_boolean_option('preview_files')) - map('bP', fm.toggle_boolean_option('preview_directories')) - map('bi', fm.toggle_boolean_option('flushinput')) - map('bd', fm.toggle_boolean_option('sort_directories_first')) - map('bc', fm.toggle_boolean_option('collapse_preview')) - map('bs', fm.toggle_boolean_option('sort_case_insensitive')) + map('zh', fm.toggle_boolean_option('show_hidden')) + map('zp', fm.toggle_boolean_option('preview_files')) + map('zP', fm.toggle_boolean_option('preview_directories')) + map('zi', fm.toggle_boolean_option('flushinput')) + map('zd', fm.toggle_boolean_option('sort_directories_first')) + map('zc', fm.toggle_boolean_option('collapse_preview')) + map('zs', fm.toggle_boolean_option('sort_case_insensitive')) # ------------------------------------------------------------ sort map('o', 'O', hint="//s//ize //b//ase//n//ame //m//time //t//ype //r//everse") -- cgit 1.4.1-2-gfad0