about summary refs log tree commit diff stats
path: root/data
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-06-15 20:35:50 +0200
committerhut <hut@lavabit.com>2009-06-15 20:35:50 +0200
commitae16120aebf58a79c804f8be75174a6470f1a9b5 (patch)
treea6c337d2f6adb23dcd8a7e1dc51227707d57413f /data
parent63bec7fe2632004f02503dc1d782293bbaf99471 (diff)
downloadranger-ae16120aebf58a79c804f8be75174a6470f1a9b5.tar.gz
added filetype rules
Diffstat (limited to 'data')
-rw-r--r--data/types.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/data/types.rb b/data/types.rb
index 8719f07c..d6e00a09 100644
--- a/data/types.rb
+++ b/data/types.rb
@@ -41,11 +41,17 @@ class Directory::Entry
 
 		end
 
-		## second, look at the extension
 		case @ext
 		when 'swc', 'smc'
 			use.zsnes
 
+		when 'rar', 'zip', 'tar', 'gz', '7z', 'jar', 'bz', 'bz2'
+			use.aunpack
+
+		end
+
+		if executable?
+			use.vi_or_run
 		end
 
 		## otherwise use vi