summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parenteb4cbac840f78d4630a7868ac6fff92b9bab821b (diff)
downloadranger-74c7c3d8601a62d5ac4f53a35467886271e1fafe.tar.gz
config/rifle.conf: stricter settings for scripts
Diffstat (limited to 'ranger')
-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" -- "$@"
artik K. Agaram <vc@akkartik.com> 2015-03-23 23:59:59 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-03-24 20:59:00 -0700 968' href='/akkartik/mu/commit/cpp/.traces/reply?h=hlt&id=576990113273caed9a045380f1457adc1df6a5ee'>57699011 ^
f6d47435 ^


5df82e48 ^

57699011 ^
f6d47435 ^
5df82e48 ^

8dacba82 ^
57699011 ^
8dacba82 ^
57699011 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36