summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-12-02 03:01:13 +0100
committerhut <hut@lavabit.com>2012-12-04 23:32:21 +0100
commitecf5fe8847c68aee72f66529ee26f6cc7f3b5b11 (patch)
treed8062d9d3ff0cbaede36fec8fb43d4baeba5e0de /doc
parent36fa003d834d7f5ef5ff456c2264476296958fc7 (diff)
downloadranger-ecf5fe8847c68aee72f66529ee26f6cc7f3b5b11.tar.gz
update documentation for commands
Diffstat (limited to 'doc')
-rw-r--r--doc/ranger.1105
-rw-r--r--doc/ranger.pod98
2 files changed, 156 insertions, 47 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1
index dc18cc4c..0e56551d 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -499,6 +499,9 @@ The different types of settings and an example for each type:
 \& list           | 1,2,3,4
 \& none           | none
 .Ve
+.PP
+You can view a list of all settings and their current values by pressing \*(L"3?\*(R"
+in ranger.
 .IP "autosave_bookmarks [bool]" 4
 .IX Item "autosave_bookmarks [bool]"
 Save bookmarks (used with mX and `X) instantly?  This helps to synchronize
@@ -638,10 +641,61 @@ Enable this if key combinations with the Alt Key don't work for you.
 .IX Header "COMMANDS"
 You can enter the commands in the console which is opened by pressing \*(L":\*(R".
 .PP
+You can always get a list of the currently existing commands by typing \*(L"2?\*(R" in
+ranger.  For your convenience, this is a list of the \*(L"public\*(R" commands including their parameters, excluding descriptions:
+.PP
+.Vb 10
+\& alias [newcommand] [oldcommand]
+\& bulkrename
+\& cd [directory]
+\& chain command1[; command2[; command3...]]
+\& chmod octal_number
+\& cmap key command
+\& console [\-pSTARTPOSITION] command
+\& copycmap key newkey [newkey2...]
+\& copymap key newkey [newkey2...]
+\& copypmap key newkey [newkey2...]
+\& copytmap key newkey [newkey2...]
+\& cunmap keys...
+\& delete [confirmation]
+\& edit [filename]
+\& eval [\-q] python_code
+\& filter [string]
+\& find pattern
+\& grep pattern
+\& load_copy_buffer
+\& map key command
+\& mark pattern
+\& mkdir dirname
+\& open_with [application] [flags] [mode]
+\& pmap key command
+\& punmap keys...
+\& quit
+\& quit!
+\& relink newpath
+\& rename newname
+\& save_copy_buffer
+\& search pattern
+\& search_inc pattern
+\& set option value
+\& shell [\-FLAGS] command
+\& terminal
+\& tmap key command
+\& touch filename
+\& tunmap keys...
+\& unmap keys...
+\& unmark pattern
+.Ve
+.PP
 There are additional commands which are directly translated to python
 functions, one for every method in the ranger.core.actions.Actions class.
 They are not documented here, since they are mostly for key bindings, not to be
 typed in by a user.  Read the source if you are interested in them.
+.PP
+These are the public commands including their descriptions:
+.IP "alias [\fInewcommand\fR] [\fIoldcommand\fR]" 2
+.IX Item "alias [newcommand] [oldcommand]"
+Copies the oldcommand as newcommand.
 .IP "bulkrename" 2
 .IX Item "bulkrename"
 This command opens a list of selected files in an external editor.  After you
@@ -656,7 +710,7 @@ The cd command changes the directory.  The command \f(CW\*(C`:cd \-\*(C'\fR is e
 typing ``.
 .IP "chain \fIcommand1\fR[; \fIcommand2\fR[; \fIcommand3\fR...]]" 2
 .IX Item "chain command1[; command2[; command3...]]"
-Combines multiple commands into one, separated by columns.
+Combines multiple commands into one, separated by semicolons.
 .IP "chmod \fIoctal_number\fR" 2
 .IX Item "chmod octal_number"
 Sets the permissions of the selection to the octal number.
@@ -695,8 +749,8 @@ See \f(CW\*(C`copymap\*(C'\fR
 .IP "copytmap \fIkey\fR \fInewkey\fR [\fInewkey2\fR ...]" 2
 .IX Item "copytmap key newkey [newkey2 ...]"
 See \f(CW\*(C`copymap\*(C'\fR
-.IP "cunmap \fIkey\fR \fIcommand\fR" 2
-.IX Item "cunmap key command"
+.IP "cunmap [\fIkeys...\fR]" 2
+.IX Item "cunmap [keys...]"
 Removes key mappings of the console. Works like the \f(CW\*(C`unmap\*(C'\fR command.
 .IP "delete [\fIconfirmation\fR]" 2
 .IX Item "delete [confirmation]"
@@ -721,7 +775,8 @@ Examples:
  :eval p(\*(L"Hello World!\*(R")
 .IP "filter [\fIstring\fR]" 2
 .IX Item "filter [string]"
-Displays only the files which contain the \fIstring\fR in their basename.
+Displays only the files which contain the \fIstring\fR in their basename.  Running
+this command without any parameter will reset the fitler.
 .IP "find \fIpattern\fR" 2
 .IX Item "find pattern"
 Search files in the current directory that match the given (case-insensitive)
@@ -759,8 +814,8 @@ in their own sections.
 .IP "pmap \fIkey\fR \fIcommand\fR" 2
 .IX Item "pmap key command"
 Binds keys for the pager. Works like the \f(CW\*(C`map\*(C'\fR command.
-.IP "punmap \fIkey\fR \fIcommand\fR" 2
-.IX Item "punmap key command"
+.IP "punmap [\fIkeys ...\fR]" 2
+.IX Item "punmap [keys ...]"
 Removes key mappings of the pager. Works like the \f(CW\*(C`unmap\*(C'\fR command.
 .IP "quit" 2
 .IX Item "quit"
@@ -769,13 +824,14 @@ Like quit!, but closes only this tab if multiple tabs are open.
 .IX Item "quit!"
 Quit ranger.  The current directory will be bookmarked as ' so you can re-enter
 it by typing `` or '' the next time you start ranger.
+.IP "relink \fInewpath\fR" 2
+.IX Item "relink newpath"
+Change the link destination of the current symlink file to <newpath>. First
+<tab> will load the original link.
 .IP "rename \fInewname\fR" 2
 .IX Item "rename newname"
 Rename the current file.  If a file with that name already exists, the renaming
 will fail.  Also try the key binding A for appending something to a file name.
-.IP "relink \fInewpath\fR" 2
-.IX Item "relink newpath"
-Change the link destination of the current symlink file to <newpath>. First <tab> will load the original link.
 .IP "save_copy_buffer" 2
 .IX Item "save_copy_buffer"
 Save the copy buffer from \fI~/.config/ranger/copy_buffer\fR.  This can be used to
@@ -789,21 +845,20 @@ regular expression pattern.
 Search files in the current directory that match the given (case insensitive)
 regular expression pattern.  This command gets you to matching files as you
 type.
-.IP "set \fIoption\fR=\fIvalue\fR" 2
-.IX Item "set option=value"
+.IP "set \fIoption\fR \fIvalue\fR" 2
+.IX Item "set option value"
 Assigns a new value to an option.  Valid options are listed in the settings
 section.  Use tab completion to get the current value of an option, though this
 doesn't work for functions and regular expressions. Valid values are:
 .Sp
-.Vb 8
-\& None           None
-\& bool           True or False
-\& integer        0 or 1 or \-1 or 2 etc.
-\& list           [1, 2, 3]
-\& tuple          1, 2, 3 or (1, 2, 3)
-\& function       lambda <arguments>: <expression>
-\& regexp         regexp(\*(Aq<pattern>\*(Aq)
-\& string         Anything
+.Vb 7
+\& setting type   | example values
+\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+\& bool           | true, false
+\& integer        | 1, 23, 1337
+\& string         | foo, hello world
+\& list           | 1,2,3,4
+\& none           | none
 .Ve
 .IP "shell [\-\fIflags\fR] \fIcommand\fR" 2
 .IX Item "shell [-flags] command"
@@ -811,14 +866,14 @@ Run a shell command.  \fIflags\fR are discussed in their own section.
 .IP "terminal" 2
 .IX Item "terminal"
 Spawns the \fIx\-terminal-emulator\fR starting in the current directory.
-.IP "touch \fIfilename\fR" 2
-.IX Item "touch filename"
-Creates an empty file with the name \fIfilename\fR, unless it already exists.
 .IP "tmap \fIkey\fR \fIcommand\fR" 2
 .IX Item "tmap key command"
 Binds keys for the taskview. Works like the \f(CW\*(C`map\*(C'\fR command.
-.IP "tunmap \fIkey\fR \fIcommand\fR" 2
-.IX Item "tunmap key command"
+.IP "touch \fIfilename\fR" 2
+.IX Item "touch filename"
+Creates an empty file with the name \fIfilename\fR, unless it already exists.
+.IP "tunmap [\fIkeys ...\fR]" 2
+.IX Item "tunmap [keys ...]"
 Removes key mappings of the taskview. Works like the \f(CW\*(C`unmap\*(C'\fR command.
 .IP "unmap [\fIkeys\fR ...]" 2
 .IX Item "unmap [keys ...]"
diff --git a/doc/ranger.pod b/doc/ranger.pod
index bb0abc9c..6903c030 100644
--- a/doc/ranger.pod
+++ b/doc/ranger.pod
@@ -473,6 +473,9 @@ The different types of settings and an example for each type:
  list           | 1,2,3,4
  none           | none
 
+You can view a list of all settings and their current values by pressing "3?"
+in ranger.
+
 =over
 
 =item autosave_bookmarks [bool]
@@ -650,13 +653,63 @@ Enable this if key combinations with the Alt Key don't work for you.
 
 You can enter the commands in the console which is opened by pressing ":".
 
+You can always get a list of the currently existing commands by typing "2?" in
+ranger.  For your convenience, this is a list of the "public" commands including their parameters, excluding descriptions:
+
+ alias [newcommand] [oldcommand]
+ bulkrename
+ cd [directory]
+ chain command1[; command2[; command3...]]
+ chmod octal_number
+ cmap key command
+ console [-pSTARTPOSITION] command
+ copycmap key newkey [newkey2...]
+ copymap key newkey [newkey2...]
+ copypmap key newkey [newkey2...]
+ copytmap key newkey [newkey2...]
+ cunmap keys...
+ delete [confirmation]
+ edit [filename]
+ eval [-q] python_code
+ filter [string]
+ find pattern
+ grep pattern
+ load_copy_buffer
+ map key command
+ mark pattern
+ mkdir dirname
+ open_with [application] [flags] [mode]
+ pmap key command
+ punmap keys...
+ quit
+ quit!
+ relink newpath
+ rename newname
+ save_copy_buffer
+ search pattern
+ search_inc pattern
+ set option value
+ shell [-FLAGS] command
+ terminal
+ tmap key command
+ touch filename
+ tunmap keys...
+ unmap keys...
+ unmark pattern
+
 There are additional commands which are directly translated to python
 functions, one for every method in the ranger.core.actions.Actions class.
 They are not documented here, since they are mostly for key bindings, not to be
 typed in by a user.  Read the source if you are interested in them.
 
+These are the public commands including their descriptions:
+
 =over 2
 
+=item alias [I<newcommand>] [I<oldcommand>]
+
+Copies the oldcommand as newcommand.
+
 =item bulkrename
 
 This command opens a list of selected files in an external editor.  After you
@@ -673,7 +726,7 @@ typing ``.
 
 =item chain I<command1>[; I<command2>[; I<command3>...]]
 
-Combines multiple commands into one, separated by columns.
+Combines multiple commands into one, separated by semicolons.
 
 =item chmod I<octal_number>
 
@@ -720,7 +773,7 @@ See C<copymap>
 
 See C<copymap>
 
-=item cunmap I<key> I<command>
+=item cunmap [I<keys...>]
 
 Removes key mappings of the console. Works like the C<unmap> command.
 
@@ -750,7 +803,8 @@ Examples:
 
 =item filter [I<string>]
 
-Displays only the files which contain the I<string> in their basename.
+Displays only the files which contain the I<string> in their basename.  Running
+this command without any parameter will reset the fitler.
 
 =item find I<pattern>
 
@@ -797,7 +851,7 @@ in their own sections.
 
 Binds keys for the pager. Works like the C<map> command.
 
-=item punmap I<key> I<command>
+=item punmap [I<keys ...>]
 
 Removes key mappings of the pager. Works like the C<unmap> command.
 
@@ -810,15 +864,16 @@ Like quit!, but closes only this tab if multiple tabs are open.
 Quit ranger.  The current directory will be bookmarked as ' so you can re-enter
 it by typing `` or '' the next time you start ranger.
 
+=item relink I<newpath>
+
+Change the link destination of the current symlink file to <newpath>. First
+<tab> will load the original link.
+
 =item rename I<newname>
 
 Rename the current file.  If a file with that name already exists, the renaming
 will fail.  Also try the key binding A for appending something to a file name.
 
-=item relink I<newpath>
-
-Change the link destination of the current symlink file to <newpath>. First <tab> will load the original link.
-
 =item save_copy_buffer
 
 Save the copy buffer from I<~/.config/ranger/copy_buffer>.  This can be used to
@@ -835,20 +890,19 @@ Search files in the current directory that match the given (case insensitive)
 regular expression pattern.  This command gets you to matching files as you
 type.
 
-=item set I<option>=I<value>
+=item set I<option> I<value>
 
 Assigns a new value to an option.  Valid options are listed in the settings
 section.  Use tab completion to get the current value of an option, though this
 doesn't work for functions and regular expressions. Valid values are:
 
- None           None
- bool           True or False
- integer        0 or 1 or -1 or 2 etc.
- list           [1, 2, 3]
- tuple          1, 2, 3 or (1, 2, 3)
- function       lambda <arguments>: <expression>
- regexp         regexp('<pattern>')
- string         Anything
+ setting type   | example values
+ ---------------+----------------------------
+ bool           | true, false
+ integer        | 1, 23, 1337
+ string         | foo, hello world
+ list           | 1,2,3,4
+ none           | none
 
 =item shell [-I<flags>] I<command>
 
@@ -858,15 +912,15 @@ Run a shell command.  I<flags> are discussed in their own section.
 
 Spawns the I<x-terminal-emulator> starting in the current directory.
 
-=item touch I<filename>
-
-Creates an empty file with the name I<filename>, unless it already exists.
-
 =item tmap I<key> I<command>
 
 Binds keys for the taskview. Works like the C<map> command.
 
-=item tunmap I<key> I<command>
+=item touch I<filename>
+
+Creates an empty file with the name I<filename>, unless it already exists.
+
+=item tunmap [I<keys ...>]
 
 Removes key mappings of the taskview. Works like the C<unmap> command.
 
16f5f846a882fbbe9127e4604bb8bb'>a2726b6a ^
d1575164 ^





80acfdae ^
a2726b6a ^

80acfdae ^

a2726b6a ^
80acfdae ^
a2726b6a ^
80acfdae ^



5898da96 ^

a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^
a2726b6a ^




5898da96 ^





a2726b6a ^
5898da96 ^





a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^
a2726b6a ^




5898da96 ^





a2726b6a ^
5898da96 ^





a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^
a2726b6a ^



5898da96 ^




a2726b6a ^
5898da96 ^





a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^
a2726b6a ^


5898da96 ^



a2726b6a ^
5898da96 ^





a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^
a2726b6a ^

5898da96 ^


a2726b6a ^
5898da96 ^





a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^
a2726b6a ^
5898da96 ^

a2726b6a ^
5898da96 ^





a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^







a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^

80acfdae ^
5898da96 ^




a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^







a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^







a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^







a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^
a2726b6a ^




5898da96 ^












a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^
a2726b6a ^




5898da96 ^












a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^
a2726b6a ^




5898da96 ^












a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^
a2726b6a ^




5898da96 ^












a2726b6a ^

5898da96 ^

a2726b6a ^
5898da96 ^
a2726b6a ^




5898da96 ^










80acfdae ^
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431