summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-01-01 02:00:24 +0100
committerhut <hut@lepus.uberspace.de>2016-01-01 02:00:24 +0100
commit91a552f35bb0484b7d9c4f1a423b4cea446bb742 (patch)
treeb86067216331f84dd88ad69b872b46e3c65eb6bd
parent951a95c2abbbf682fa087d567542b0cd76afcda3 (diff)
downloadranger-91a552f35bb0484b7d9c4f1a423b4cea446bb742.tar.gz
ranger.pod: describe that :setlocal path is a regex
fixes #443
-rw-r--r--doc/ranger.16
-rw-r--r--doc/ranger.pod4
-rw-r--r--ranger/config/commands.py2
3 files changed, 10 insertions, 2 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1
index 6ec463b6..e810e7c6 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -133,7 +133,7 @@
 .\" ========================================================================
 .\"
 .IX Title "RANGER 1"
-.TH RANGER 1 "ranger-1.7.2" "11/14/2015" "ranger manual"
+.TH RANGER 1 "ranger-1.7.2" "01/01/2016" "ranger manual"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
@@ -1185,6 +1185,10 @@ visiting that directory.
 Assigns a new value to an option, but locally for the directory given by
 \&\fIpath\fR. This means, that this option only takes effect when visiting that
 directory. If no path is given, uses the current directory.
+.Sp
+\&\fIpath\fR is a regular expression.  This means that \f(CW\*(C`path=~/dl\*(C'\fR applies to all
+paths that start with \fI~/dl\fR, e.g. \fI~/dl2\fR and \fI~/dl/foo\fR. To avoid this,
+use \f(CW\*(C`path=~/dl$\*(C'\fR.
 .IP "shell [\-\fIflags\fR] \fIcommand\fR" 2
 .IX Item "shell [-flags] command"
 Run a shell command.  \fIflags\fR are discussed in their own section.
diff --git a/doc/ranger.pod b/doc/ranger.pod
index e1a8d032..60deedf3 100644
--- a/doc/ranger.pod
+++ b/doc/ranger.pod
@@ -1243,6 +1243,10 @@ Assigns a new value to an option, but locally for the directory given by
 I<path>. This means, that this option only takes effect when visiting that
 directory. If no path is given, uses the current directory.
 
+I<path> is a regular expression.  This means that C<path=~/dl> applies to all
+paths that start with I<~/dl>, e.g. I<~/dl2> and I<~/dl/foo>. To avoid this,
+use C<path=~/dl$>.
+
 =item shell [-I<flags>] I<command>
 
 Run a shell command.  I<flags> are discussed in their own section.
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 453f7f6a..40377547 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -374,7 +374,7 @@ class set_(Command):
 
 
 class setlocal(set_):
-    """:setlocal path=<python string> <option name>=<python expression>
+    """:setlocal path=<regular expression> <option name>=<python expression>
 
     Gives an option a new value.
     """
00 committer James Booth <boothj5@gmail.com> 2012-05-27 20:36:31 +0100 Commands for presence updates' href='/danisanti/profani-tty/commit/ui.h?id=dd9f6f825ea7b602f3064ca4a6099dfb5cd9910d'>dd9f6f82 ^
134da4d0 ^
ec75b5e0 ^
a234ba0c ^
1d3739bb ^
4d190a9c ^
11125561 ^
17a284b2 ^
a6859354 ^
7fe8f61b ^
b83b262d ^
a6859354 ^
1046a004 ^
5a5b1340 ^

bc3c4e09 ^
5a5b1340 ^

2101f29e ^
5a5b1340 ^

7d6ce4da ^
b19b881b ^
5a5b1340 ^

84c7fc9a ^
462e84ea ^
a3217bcf ^
462e84ea ^

84c7fc9a ^
a077d200 ^

2bc19f46 ^
84c7fc9a ^
84c7fc9a ^


1e4fc2ce ^


5a5b1340 ^


5a5b1340 ^
5a5b1340 ^



1046a004 ^

5a5b1340 ^



9daefe17 ^

5a5b1340 ^

82ad0cd3 ^
5a5b1340 ^
5a5b1340 ^
eaa19598 ^


5a5b1340 ^





1046a004 ^
bf185d99 ^

1046a004 ^
5a5b1340 ^

1046a004 ^
5a5b1340 ^


1046a004 ^
2c15aba9 ^
5a5b1340 ^

1046a004 ^
5a5b1340 ^
1046a004 ^
5a5b1340 ^
1046a004 ^
57effcd5 ^
64521eb1 ^
5a5b1340 ^
1046a004 ^
5a5b1340 ^

1046a004 ^
5a5b1340 ^
1046a004 ^
5a5b1340 ^

1046a004 ^
5a5b1340 ^





3f0addbc ^

1a300ce7 ^
27293ebb ^

95c08166 ^
2c15aba9 ^
47d1b1ea ^
1046a004 ^

5a5b1340 ^
c65b43f0 ^
5a5b1340 ^
1925cb80 ^
5a5b1340 ^
1925cb80 ^
7aa1d931 ^
5a5b1340 ^




90ac69be ^
5a5b1340 ^

547b6cf4 ^
905571bf ^
fc406377 ^





f0f0dbfd ^

fc406377 ^
9aa282f6 ^



a7190ed7 ^
b9aac28c ^

e6e0a13e ^



02f5df5b ^
d56f6dc3 ^
5a5b1340 ^









01578066 ^
5a5b1340 ^












8dbe300d ^
5a5b1340 ^

e955df88 ^
bced3d4b ^
5a5b1340 ^





b6095ca9 ^
5a5b1340 ^





























3f0addbc ^

02f5df5b ^
107fdd35 ^
5a5b1340 ^
107fdd35 ^
5a5b1340 ^
b36fbe41 ^
5a5b1340 ^
b36fbe41 ^
5a5b1340 ^

107fdd35 ^
5a5b1340 ^
107fdd35 ^
134e5d17 ^
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286