diff options
author | hut <hut@lavabit.com> | 2009-06-15 20:35:50 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-06-15 20:35:50 +0200 |
commit | ae16120aebf58a79c804f8be75174a6470f1a9b5 (patch) | |
tree | a6c337d2f6adb23dcd8a7e1dc51227707d57413f | |
parent | 63bec7fe2632004f02503dc1d782293bbaf99471 (diff) | |
download | ranger-ae16120aebf58a79c804f8be75174a6470f1a9b5.tar.gz |
added filetype rules
-rw-r--r-- | data/types.rb | 8 |
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 |