diff options
author | hut <hut@lavabit.com> | 2009-06-13 02:33:35 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-06-13 02:33:35 +0200 |
commit | 46ad9bb591d057715fcd63376326336f3339fba7 (patch) | |
tree | 017800b49d26f5454a19469fbadd72f677883cb2 /data | |
parent | 2887ca25fb58362d5d644ecda5f0bc51c80ec404 (diff) | |
download | ranger-46ad9bb591d057715fcd63376326336f3339fba7.tar.gz |
cleaning up
Diffstat (limited to 'data')
-rw-r--r-- | data/apps.rb | 8 | ||||
-rw-r--r-- | data/types.rb | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/data/apps.rb b/data/apps.rb index 6ba7f44b..dc65d1a7 100644 --- a/data/apps.rb +++ b/data/apps.rb @@ -23,9 +23,9 @@ module Application def feh(rc) check rc case rc.mode - when 4; "feh --bg-scale #{~rc.first}" - when 5; "feh --bg-tile #{~rc.first}" - when 6; "feh --bg-center #{~rc.first}" + when 4; "feh --bg-scale #{rc.one}" + when 5; "feh --bg-tile #{rc.one}" + when 6; "feh --bg-center #{rc.one}" when 2; "gimp #{~rc}" when 1; "feh -F #{~rc}" else "feh #{~rc}" @@ -35,7 +35,7 @@ module Application def interpreted_language(rc) check rc case rc.mode - when 1; "./#{~rc.first}" + when 1; rc.first.executable? ? "#{rc.one}" : nil when 0; vi(rc) else nil end end diff --git a/data/types.rb b/data/types.rb index 773df758..84f8295a 100644 --- a/data/types.rb +++ b/data/types.rb @@ -29,6 +29,7 @@ class Directory::Entry end + ## otherwise use vi use.vi end end |