about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-01 01:43:59 +0200
committerhut <hut@lavabit.com>2010-04-01 01:43:59 +0200
commitd6928df8e8ace9d3aac233e1074f85fe5ca5bc85 (patch)
tree3ac43ba8d3e0d0a77c5c9a720c6624dc2f47a94a
parentdd91e08456cc9e0c71b22c58fe67ab7e0e3bdf91 (diff)
downloadranger-d6928df8e8ace9d3aac233e1074f85fe5ca5bc85.tar.gz
Change settings with z rather than with b
This is more vim-like and intuitive
-rw-r--r--ranger/defaults/keys.py17
1 files 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")