about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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