summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorCélestin Matte <celestin.matte@gmail.com>2014-04-28 10:40:00 +0200
committerCélestin Matte <celestin.matte@gmail.com>2014-04-28 11:06:13 +0200
commitc826091a74e88102ca1795ab9798dd8b8498f653 (patch)
tree0315e0abc299fe1b50497e6f355b0bb1243bf7cf /ranger
parent3e31022b943f33f0466f9f5b7b452cf2363bfb40 (diff)
downloadranger-c826091a74e88102ca1795ab9798dd8b8498f653.tar.gz
Allow $EDITOR to contain spaces
$EDITOR variables consisting of "program name + options" are not handled
correctly because of quotes around $EDITOR. As a result, if $EDITOR is not
a simple program name (i.e. if it includes options, as in "emacs -nw"), the
full string is taken as a program and fails to run.
Error message: (/bin/sh: 1: emacs -nw: not found)
Removing quotes fixes this problem.
Diffstat (limited to 'ranger')
-rw-r--r--ranger/config/rifle.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/config/rifle.conf b/ranger/config/rifle.conf
index 364d7c28..68189cd7 100644
--- a/ranger/config/rifle.conf
+++ b/ranger/config/rifle.conf
@@ -79,9 +79,9 @@ ext x?html?, has w3m,             terminal = w3m "$@"
 # Misc
 #-------------------------------------------
 # Define the "editor" for text files as first action
-mime ^text,  label editor = "$EDITOR" -- "$@"
+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 = $EDITOR -- "$@"
 !mime ^text, label pager,  ext xml|csv|tex|py|pl|rb|sh|php = "$PAGER" -- "$@"
 
 ext 1                         = man "$1"
@@ -184,5 +184,5 @@ label wallpaper, number 14, mime ^image, X = feh --bg-fill "$1"
 
 # Define the editor for non-text files + pager as last action
               !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php  = ask
-label editor, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php  = "$EDITOR" -- "$@"
+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" -- "$@"
;id=44f2e8b952264311887c3b51dc6a987af226062a'>44f2e8b ^
66da153 ^






0e5c819 ^

66da153 ^



0e5c819 ^

66da153 ^






0e5c819 ^

44f2e8b ^






3aad922 ^

44f2e8b ^

44f2e8b ^










3aad922 ^

44f2e8b ^


44f2e8b ^


c47da14 ^
44f2e8b ^


b9da4b0 ^



b9da4b0 ^



3f942f9 ^
b9da4b0 ^
3f942f9 ^

48b6e9a ^
b9da4b0 ^

a05beb6 ^
b9da4b0 ^
dfd84f9 ^
b9da4b0 ^

dfd84f9 ^


b9da4b0 ^
dfd84f9 ^
3f942f9 ^



7fe717c ^
b9da4b0 ^











3f942f9 ^
b9da4b0 ^


3f942f9 ^

48b6e9a ^
b9da4b0 ^


b9da4b0 ^
dfd84f9 ^
b9da4b0 ^

dfd84f9 ^


b9da4b0 ^
dfd84f9 ^
3f942f9 ^

7fe717c ^
b9da4b0 ^

b9da4b0 ^




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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151