about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-03 17:20:06 +0200
committerhut <hut@lavabit.com>2009-07-03 17:20:06 +0200
commit3dbfe7e8e04a9b3d7551987325f018c338e7d398 (patch)
treeccb2edefb267d8e9b158c159460aa2fad4a0bcbf
parentf8634dd6d2477d1871764982fe8d55f2003ab938 (diff)
downloadranger-3dbfe7e8e04a9b3d7551987325f018c338e7d398.tar.gz
small changes
-rw-r--r--code/keys.rb5
-rw-r--r--data/apps.rb2
2 files changed, 4 insertions, 3 deletions
diff --git a/code/keys.rb b/code/keys.rb
index d4021ff2..915c6474 100644
--- a/code/keys.rb
+++ b/code/keys.rb
@@ -8,6 +8,7 @@ module Fm
 
 		um
 
+		/:[^<]*/
 		/[fF/!].*/
 		/r\d*\w*[^r]/
 		/(cw|cd|mv).*/
@@ -134,8 +135,8 @@ module Fm
 			closei
 			system('clear')
 			ls = ['ls']
-			ls << '--color=auto' if Option.color
-			ls << '--group-directories-first' if Option.color
+			ls << '--color=auto' #if Option.color
+			ls << '--group-directories-first' #if Option.color
 			system(*ls)
 			system('bash')
 			@pwd.schedule
diff --git a/data/apps.rb b/data/apps.rb
index 89b8a9cc..921306b1 100644
--- a/data/apps.rb
+++ b/data/apps.rb
@@ -101,7 +101,7 @@ module Application
 
 	def vi(files)
 		commands = [
-			'map h :quit<cr>',
+			'map h ZZ',
 			'map q h',
 			'map H :unmap h<CR>:unmap H<CR>:unmap q<CR>',
 		].map {|x| "+'#{x}'"}.join(' ')