about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-08-05 17:52:10 +0200
committerhut <hut@lavabit.com>2012-08-05 17:52:10 +0200
commit74c7c3d8601a62d5ac4f53a35467886271e1fafe (patch)
tree4d00ac0a9b85238b24a0eb5a3bee912ff97036b7
parenteb4cbac840f78d4630a7868ac6fff92b9bab821b (diff)
downloadranger-74c7c3d8601a62d5ac4f53a35467886271e1fafe.tar.gz
config/rifle.conf: stricter settings for scripts
-rw-r--r--ranger/config/rifle.conf12
1 files changed, 6 insertions, 6 deletions
diff --git a/ranger/config/rifle.conf b/ranger/config/rifle.conf
index 039344bd..857fa4b1 100644
--- a/ranger/config/rifle.conf
+++ b/ranger/config/rifle.conf
@@ -74,10 +74,10 @@ ext x?html?, has w3m,             terminal = w3m "$@"
 # Misc
 #-------------------------------------------
 # Define the "editor" for text files as first action
-mime ^text,      label editor = "$EDITOR" -- "$@"
-ext xml|csv|tex, label editor = "$EDITOR" -- "$@"
-mime ^text,      label pager  = "$PAGER" -- "$@"
-ext xml|csv|tex, label pager  = "$PAGER" -- "$@"
+mime ^text,  label editor = "$EDITOR" -- "$@"
+mime ^text,  label pager  = "$PAGER" -- "$@"
+!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@"
+!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$PAGER" -- "$@"
 
 ext 1                         = man "$1"
 ext s[wmf]c, has zsnes, X     = zsnes "$1"
@@ -177,5 +177,5 @@ label wallpaper, number 13, mime ^image, X = feh --bg-center "$1"
 label wallpaper, number 14, mime ^image, X = feh --bg-fill "$1"
 
 # Define the editor for non-text files + pager as last action
-label editor, !mime ^text, !ext xml|csv|tex  = "$EDITOR" -- "$@"
-label pager,  !mime ^text, !ext xml|csv|tex  = "$PAGER" -- "$@"
+label editor, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php  = "$EDITOR" -- "$@"
+label pager,  !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php  = "$PAGER" -- "$@"