about summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/ranger.164
-rw-r--r--doc/ranger.pod104
2 files changed, 160 insertions, 8 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1
index b22cb69f..b9c46d54 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -278,10 +278,66 @@ By default, only text files are previewed, but you can enable external preview
 scripts by setting the option \f(CW\*(C`use_preview_script\*(C'\fR and \f(CW\*(C`preview_files\*(C'\fR to true.
 .PP
 This default script is \fI\f(CI%rangerdir\fI/data/scope.sh\fR. It contains more
-documentation and calls to the programs \fIlynx\fR and \fIelinks\fR for html,
-\&\fIhighlight\fR for text/code, \fIimg2txt\fR for images, \fIatool\fR for archives,
-\&\fIpdftotext\fR or \fImutool\fR for PDFs and \fImediainfo\fR for video and audio files
-and others.
+documentation and calls to many external programs to generate previews. They
+are automatically used when available but completely optional.
+.IP "For general usage:" 2
+.IX Item "For general usage:"
+.RS 2
+.PD 0
+.IP "\-" 2
+.PD
+\&\f(CW\*(C`file\*(C'\fR for determining file types
+.IP "\-" 2
+\&\f(CW\*(C`chardet\*(C'\fR (Python package) for improved encoding detection of text files
+.IP "\-" 2
+\&\f(CW\*(C`sudo\*(C'\fR to use the \*(L"run as root\*(R" feature
+.IP "\-" 2
+\&\f(CW\*(C`python\-bidi\*(C'\fR (Python package) to display right-to-left file names correctly
+(Hebrew, Arabic)
+.RE
+.RS 2
+.RE
+.IP "For enhanced file previews (with scope.sh):" 2
+.IX Item "For enhanced file previews (with scope.sh):"
+.RS 2
+.PD 0
+.IP "\-" 2
+.PD
+\&\f(CW\*(C`img2txt\*(C'\fR (from \f(CW\*(C`caca\-utils\*(C'\fR) for ASCII-art image previews
+.IP "\-" 2
+\&\f(CW\*(C`w3mimgdisplay\*(C'\fR, \f(CW\*(C`ueberzug\*(C'\fR, \f(CW\*(C`mpv\*(C'\fR, \f(CW\*(C`iTerm2\*(C'\fR, \f(CW\*(C`kitty\*(C'\fR, \f(CW\*(C`terminology\*(C'\fR or
+\&\f(CW\*(C`urxvt\*(C'\fR for image previews
+.IP "\-" 2
+\&\f(CW\*(C`convert\*(C'\fR (from \f(CW\*(C`imagemagick\*(C'\fR) to auto-rotate images and for \s-1SVG\s0 previews
+.IP "\-" 2
+\&\f(CW\*(C`ffmpegthumbnailer\*(C'\fR for video thumbnails
+.IP "\-" 2
+\&\f(CW\*(C`highlight\*(C'\fR, \f(CW\*(C`bat\*(C'\fR or \f(CW\*(C`pygmentize\*(C'\fR for syntax highlighting of code
+.IP "\-" 2
+\&\f(CW\*(C`atool\*(C'\fR, \f(CW\*(C`bsdtar\*(C'\fR, \f(CW\*(C`unrar\*(C'\fR and/or \f(CW\*(C`7z\*(C'\fR to preview archives
+.IP "\-" 2
+\&\f(CW\*(C`bsdtar\*(C'\fR, \f(CW\*(C`tar\*(C'\fR, \f(CW\*(C`unrar\*(C'\fR, \f(CW\*(C`unzip\*(C'\fR and/or \f(CW\*(C`zipinfo\*(C'\fR (and \f(CW\*(C`sed\*(C'\fR) to preview archives as their first image
+.IP "\-" 2
+\&\f(CW\*(C`lynx\*(C'\fR, \f(CW\*(C`w3m\*(C'\fR or \f(CW\*(C`elinks\*(C'\fR to preview html pages
+.IP "\-" 2
+\&\f(CW\*(C`pdftotext\*(C'\fR or \f(CW\*(C`mutool\*(C'\fR (and \f(CW\*(C`fmt\*(C'\fR) for textual pdf previews, \f(CW\*(C`pdftoppm\*(C'\fR to preview as image
+.IP "\-" 2
+\&\f(CW\*(C`djvutxt\*(C'\fR for textual DjVu previews, \f(CW\*(C`ddjvu\*(C'\fR to preview as image
+.IP "\-" 2
+\&\f(CW\*(C`calibre\*(C'\fR or \f(CW\*(C`epub\-thumbnailer\*(C'\fR for image previews of ebooks
+.IP "\-" 2
+\&\f(CW\*(C`transmission\-show\*(C'\fR for viewing BitTorrent information
+.IP "\-" 2
+\&\f(CW\*(C`mediainfo\*(C'\fR or \f(CW\*(C`exiftool\*(C'\fR for viewing information about media files
+.IP "\-" 2
+\&\f(CW\*(C`odt2txt\*(C'\fR for OpenDocument text files (odt, ods, odp and sxw)
+.IP "\-" 2
+\&\f(CW\*(C`python\*(C'\fR or \f(CW\*(C`jq\*(C'\fR for \s-1JSON\s0 files
+.IP "\-" 2
+\&\f(CW\*(C`fontimage\*(C'\fR for font previews
+.RE
+.RS 2
+.RE
 .PP
 Install these programs (just the ones you need) and scope.sh will automatically
 use them.
diff --git a/doc/ranger.pod b/doc/ranger.pod
index 988aabc0..a955efd8 100644
--- a/doc/ranger.pod
+++ b/doc/ranger.pod
@@ -191,10 +191,106 @@ By default, only text files are previewed, but you can enable external preview
 scripts by setting the option C<use_preview_script> and C<preview_files> to true.
 
 This default script is F<%rangerdir/data/scope.sh>. It contains more
-documentation and calls to the programs I<lynx> and I<elinks> for html,
-I<highlight> for text/code, I<img2txt> for images, I<atool> for archives,
-I<pdftotext> or I<mutool> for PDFs and I<mediainfo> for video and audio files
-and others.
+documentation and calls to many external programs to generate previews. They
+are automatically used when available but completely optional.
+
+=over 2
+
+=item For general usage:
+
+=over 2
+
+=item -
+
+C<file> for determining file types
+
+=item -
+
+C<chardet> (Python package) for improved encoding detection of text files
+
+=item -
+
+C<sudo> to use the "run as root" feature
+
+=item -
+
+C<python-bidi> (Python package) to display right-to-left file names correctly
+(Hebrew, Arabic)
+
+=back
+
+=item For enhanced file previews (with scope.sh):
+
+=over 2
+
+=item -
+
+C<img2txt> (from C<caca-utils>) for ASCII-art image previews
+
+=item -
+
+C<w3mimgdisplay>, C<ueberzug>, C<mpv>, C<iTerm2>, C<kitty>, C<terminology> or
+C<urxvt> for image previews
+
+=item -
+
+C<convert> (from C<imagemagick>) to auto-rotate images and for SVG previews
+
+=item -
+
+C<ffmpegthumbnailer> for video thumbnails
+
+=item -
+
+C<highlight>, C<bat> or C<pygmentize> for syntax highlighting of code
+
+=item -
+
+C<atool>, C<bsdtar>, C<unrar> and/or C<7z> to preview archives
+
+=item -
+
+C<bsdtar>, C<tar>, C<unrar>, C<unzip> and/or C<zipinfo> (and C<sed>) to preview archives as their first image
+
+=item -
+
+C<lynx>, C<w3m> or C<elinks> to preview html pages
+
+=item -
+
+C<pdftotext> or C<mutool> (and C<fmt>) for textual pdf previews, C<pdftoppm> to preview as image
+
+=item -
+
+C<djvutxt> for textual DjVu previews, C<ddjvu> to preview as image
+
+=item -
+
+C<calibre> or C<epub-thumbnailer> for image previews of ebooks
+
+=item -
+
+C<transmission-show> for viewing BitTorrent information
+
+=item -
+
+C<mediainfo> or C<exiftool> for viewing information about media files
+
+=item -
+
+C<odt2txt> for OpenDocument text files (odt, ods, odp and sxw)
+
+=item -
+
+C<python> or C<jq> for JSON files
+
+=item -
+
+C<fontimage> for font previews
+
+=back
+
+=back
 
 Install these programs (just the ones you need) and scope.sh will automatically
 use them.
ommit/chessboard.mu?h=hlt&id=9d670bb58f8841791d7531946601658cedd20229'>9d670bb5 ^
4071055a ^
9d670bb5 ^

01aeedd9 ^

4071055a ^
01aeedd9 ^


9d670bb5 ^
4071055a ^
9d670bb5 ^
971e710d ^






9d670bb5 ^
dc1323e9 ^

9d670bb5 ^
4071055a ^

















9d670bb5 ^

4071055a ^

9d670bb5 ^


4071055a ^
9d670bb5 ^

01aeedd9 ^

4071055a ^
01aeedd9 ^


9d670bb5 ^
4071055a ^
9d670bb5 ^
971e710d ^






9d670bb5 ^
dc1323e9 ^

9d670bb5 ^
4071055a ^
















9d670bb5 ^


4071055a ^
9d670bb5 ^



4071055a ^
9d670bb5 ^

4071055a ^






9d670bb5 ^


4071055a ^
9d670bb5 ^




4071055a ^
9d670bb5 ^




































































f8c0ef3e ^
9d670bb5 ^














01aeedd9 ^

4071055a ^
01aeedd9 ^

4071055a ^
01aeedd9 ^






















4071055a ^
01aeedd9 ^
01aeedd9 ^
4071055a ^
01aeedd9 ^









4071055a ^


01aeedd9 ^



4071055a ^
01aeedd9 ^
01aeedd9 ^
4071055a ^
01aeedd9 ^










4071055a ^


971e710d ^





















01aeedd9 ^

1abde57f ^




























c1b75e9e ^
1abde57f ^
e0053bcb ^
1abde57f ^

























1abde57f ^

f8c0ef3e ^
f8c0ef3e ^

4e0051e5 ^

f8c0ef3e ^
f8c0ef3e ^

4e0051e5 ^

04ae7fda ^

f8c0ef3e ^

e3894819 ^
4e0051e5 ^



f8c0ef3e ^

4e0051e5 ^

f8c0ef3e ^

4e0051e5 ^
4071055a ^
4e0051e5 ^
4071055a ^
4e0051e5 ^

4071055a ^
a66ad533 ^
4071055a ^

f8c0ef3e ^
4e0051e5 ^
f8c0ef3e ^

4071055a ^

f8c0ef3e ^
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
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594