]> git.phdru.name Git - dotfiles.git/blob - .mc/menu
.mc: Load songs from a playlist one by one
[dotfiles.git] / .mc / menu
1 shell_patterns=0
2
3 # This is necessary to overcome a bug in mc - without this
4 # mc makes default wrong item
5 :  NOOP
6    :
7
8 @  Do something on all of the file(s) at once
9    CMD=%{Enter command}
10    exec $CMD %s
11
12 + t t
13 @  Do something on the selected files one by one
14    CMD=%{Enter command}
15    for f in %s; do
16      $CMD "$f"
17    done
18
19 + t lr
20 p  View the file in a pager
21    exec ${PAGER:-more} %f
22
23 + t lr
24 g  Edit the file in gvim
25    gvim %f &
26
27 + t lr
28 b  View the file in a browser
29    exec webbrowser-encode-url -e utf-8 file://%d/%f
30
31 + t lr
32 = f \.(htm(l?)|txt)$
33 w  View the file in a new browser window
34    exec webbrowser-encode-url -e utf-8 -n file://%d/%f
35
36 + t lr
37 t  View the file in a new browser tab
38    exec webbrowser-encode-url -e utf-8 -t file://%d/%f
39
40 += f \.fb2(\.bz2|\.gz|\.zip)?$ | f \.(chm|epub|htm(l?)|txt|rtf)$ & t lr
41 f  View fb2/chm/epub with fbreader
42    fbreader %f &
43
44 + t lr & f \.fb2(\.bz2|\.gz|\.zip)$
45 H  fb2html
46    case %f in
47      *.fb2.bz2) A="bunzip2 -c" ;;
48      *.fb2.gz) A="gunzip -c" ;;
49      *.fb2.zip) A="unzip -p" ;;
50      *.fb2) A="cat" ;;
51    esac
52    $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_html_ru.xsl - | webstdin -t
53
54 + t lr & f \.fb2(\.bz2|\.gz|\.zip)$
55 T  fb2txt
56    case %f in
57      *.fb2.bz2) A="bunzip2 -c" ;;
58      *.fb2.gz) A="gunzip -c" ;;
59      *.fb2.zip) A="unzip -p" ;;
60      *.fb2) A="cat" ;;
61    esac
62    $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl - | webstdin -e txt -t
63
64 + t lr & f \.(pdf|PDF)$
65 v  View pdf
66    pdftotext -layout -q %f - | iconv.py -f utf-8 | ${PAGER:-more}
67
68 += t lr & f \.(pdf|PDF)$
69 e  View pdf with evince
70    evince %f &
71
72 += t lr & f \.djvu(\.bz2|\.gz)?$
73 e  View djvu
74    djview %f &
75
76 + t lr & f \.((pdf|PDF|ps|PS)(\.bz2|\.gz)?|odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg|doc|DOC|rtf|docx|DOCX|xls|XLS|xlsx|XLSX)$
77 e  Edit (Open)Docs with libreoffice
78    libreoffice %f &
79
80 + t lr & f \.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg|doc|DOC|rtf|docx|DOCX|xls|XLS|xlsx|XLSX)$
81 v  View (Open)Docs with libreoffice
82    #libreoffice --headless --convert-to "txt:Text (encoded):UTF8" %f
83    libreoffice --cat %f | ${PAGER:-more}
84
85 += t lr & f \.(doc|DOC|rtf)$
86 d  View doc with catdoc
87    catdoc %f | ${PAGER:-more}
88
89 += t lr & f \.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
90 o  View OpenDoc with odt2txt
91    odt2txt %f | ${PAGER:-more}
92
93 += t lr & f \.(docx|DOCX)$
94 d  View docx with docx2txt
95    docx2txt %f - | iconv.py -f utf-8 | ${PAGER:-more}
96
97 += t lr & f \.(xls|XLS|xlsx|XLSX)$
98 o  View OpenXlsx with xlsx2csv
99    xlsx2csv %f | iconv.py -f utf-8 | ${PAGER:-more}
100
101 += t lr & f \.(xls|XLS)$
102 x  View xls with xls2csv
103    xls2csv %f | ${PAGER:-more}
104
105 + t lr & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$ | t t
106 = t lr & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$
107 i  View image(s) scaled
108    xli -title "`echo %s | sed 's/ /_/g'`" -zoom auto %s &
109
110 + t lr & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$ | t t
111 I  View image(s) full size
112    xli -title "`echo %s | sed 's/ /_/g'`" %s &
113
114 + t lr & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$
115 I  Identify image
116    xli -identify %f
117
118 + t lr & f \.(ico|jp2|tif|TIF|tiff|TIFF|webp)$ | t t
119 = t lr & f \.(ico|jp2|tif|TIF|tiff|TIFF|webp)$
120 I  View icon, JPEG-2000, TIFF, WebP image
121    display %s &
122
123 + t lr & f \.(aac|ac3|ape|cue|dts|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ | t t
124 a  Add the audiofile(s) or playlist(s)
125    if [ "`audtool --get-volume`" -eq 0 ]; then audacious & sleep 3; fi
126    for f in %s; do
127       case "$f" in
128          *.m3u) while read song; do
129             audtool --playlist-addurl "$song"
130          done < "$f" ;;
131          *) audtool --playlist-addurl "$f" ;;
132       esac
133    done
134    #deadbeef --queue %s &
135
136 + t lr & f \.(aac|ac3|ape|cue|dts|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ | t t
137 = t lr & f \.(aac|ac3|ape|cue|dts|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$
138 p  Load the audiofile(s) or playlist(s)
139    if [ "`audtool --get-volume`" -eq 0 ]; then audacious & sleep 3; fi
140    audtool --playlist-clear
141    for f in %s; do
142       case "$f" in
143          *.m3u) while read song; do
144             audtool --playlist-addurl "$song"
145          done < "$f" ;;
146          *) audtool --playlist-addurl "$f" ;;
147       esac
148    done
149    #deadbeef --queue %s &
150
151 + t lr & f \.(aac|ac3|ape|cue|dts|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ | t t
152 P  Play the audiofile(s) or playlist(s)
153    if [ "`audtool --get-volume`" -eq 0 ]; then audacious & sleep 3; fi
154    audtool --playlist-clear
155    for f in %s; do
156       case "$f" in
157          *.m3u) while read song; do
158             audtool --playlist-addurl "$song"
159          done < "$f" ;;
160          *) audtool --playlist-addurl "$f" ;;
161       esac
162    done
163    exec audtool --playback-play
164    #mplayer -playlist %f &
165    #deadbeef %s &
166
167 + t lr & f \.m3u
168 R  Play the playlist in random order
169    "$HOME"/admin/prog/audio-cdr-video/audio/shuffle-playlist.py %f random-playlist-tmp.m3u
170    if [ "`audtool --get-volume`" -eq 0 ]; then audacious & sleep 3; fi
171    audtool --playlist-clear
172    while read song; do
173       audtool --playlist-addurl "$song"
174    done < random-playlist-tmp.m3u
175    audtool --playback-play
176    #mplayer -playlist random-playlist-tmp.m3u &
177    #deadbeef --queue random-playlist-tmp.m3u & deadbeef --play
178    (sleep 5; exec rm random-playlist-tmp.m3u) &
179
180 + t lr & f \.(m3u|mp3|MP3|cue|aac|ac3|ape|dts|flac|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$
181 i  Audio/video info
182    exec "$HOME"/.config/mpv/mpv_identify.sh %f
183
184 + t d & f (video_ts|VIDEO_TS)$
185 i  DVD info
186    exec "$HOME"/.config/mpv/mpv_identify.sh .
187
188 + f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t d | t t
189 m  Play video file(s) with mpv
190    mplayer %s &
191
192 + f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t d | t t
193 m  Play video file(s) with mpv (loud)
194    AUDIO_VOLUME=120
195    export AUDIO_VOLUME
196    mplayer %s &
197
198 + f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t d | t t
199 = f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$
200 m  Play video file(s) with mpv (louder)
201    AUDIO_VOLUME=150
202    export AUDIO_VOLUME
203    mplayer %s &
204
205 + f \.(aac|ac3|ape|cue|dts|flac|m3u|mp3|MP3|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t d | t t
206 m  Play video file(s) with mpv (ask for volume)
207    AUDIO_VOLUME=%{Enter volume}
208    export AUDIO_VOLUME
209    mplayer %s &
210
211 + f \.(m3u|mp3|MP3|cue|aac|ac3|ape|dts|flac|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t t
212 M  Play audio/video with mpv GUI
213    gmplayer %s &
214
215 += t d & f (video_ts|VIDEO_TS)$
216 d  Play DVD directory with mpv
217    mplayer -dvd-device . dvd:// &
218
219 + t d & f (video_ts|VIDEO_TS)$
220 D  Play DVD directory with mpv GUI
221    gmplayer -dvd-device . dvd:// &
222
223 + t d & f (video_ts|VIDEO_TS)$
224 t  Play DVD title with mpv
225    title=%{Enter title}
226    mplayer -dvd-device . dvd://"$title" &
227
228 + t d & f (video_ts|VIDEO_TS)$
229 T  Play DVD title with mpv GUI
230    title=%{Enter title}
231    gmplayer -dvd-device . dvd://"$title" &
232
233 + t d
234 p  Play directory with mpv
235    mplayer %f/* &
236
237 + t d
238 P  Play directory with mpv GUI
239    gmplayer %f/* &
240
241 + t d & f ^\.\.$
242 b  Compress the current subdirectory to tar.bz2
243    Pwd="`basename %d /`"
244    echo -n "Name of the distribution file (without extension) [$Pwd]: "
245    read tar
246    if [ "$tar"x = x ]; then tar="$Pwd"; fi
247    cd .. && tar cvf - "$Pwd" | bzip2 -f9 > "$tar".tar.bz2 &&
248    echo ../"$tar".tar.bz2 created.
249
250 + t d & f ^\.\.$
251 g  Compress the current subdirectory to tar.gz
252    Pwd="`basename %d /`"
253    echo -n "Name of the distribution file (without extension) [$Pwd]: "
254    read tar
255    if [ "$tar"x = x ]; then tar="$Pwd"; fi
256    cd .. && tar cvf - "$Pwd" | gzip -f9 > "$tar".tar.gz &&
257    echo ../"$tar".tar.gz created.
258
259 + t d & f ^\.\.$
260 l  Compress the current subdirectory to tar.lzma
261    Pwd="`basename %d /`"
262    echo -n "Name of the distribution file (without extension) [$Pwd]: "
263    read tar
264    if [ "$tar"x = x ]; then tar="$Pwd"; fi
265    cd .. && tar cvf - "$Pwd" | lzma -f9 > "$tar".tar.lzma &&
266    echo ../"$tar".tar.lzma created.
267
268 + t d & f ^\.\.$
269 x  Compress the current subdirectory to tar.xz
270    Pwd="`basename %d /`"
271    echo -n "Name of the distribution file (without extension) [$Pwd]: "
272    read tar
273    if [ "$tar"x = x ]; then tar="$Pwd"; fi
274    cd .. && tar cvf - "$Pwd" | xz -f9 > "$tar".tar.xz &&
275    echo ../"$tar".tar.xz created.
276
277 + t d & f ^\.\.$
278 t  Compress the current subdirectory to tar
279    Pwd="`basename %d /`"
280    echo -n "Name of the distribution file (without extension) [$Pwd]: "
281    read tar
282    if [ "$tar"x = x ]; then tar="$Pwd"; fi
283    cd .. && tar cvf - "$Pwd" > "$tar".tar &&
284    echo ../"$tar".tar created.
285
286 + t d & f ^\.\.$
287 z  Compress the current subdirectory to zip
288    Pwd="`basename %d /`"
289    echo -n "Name of the distribution file (without extension) [$Pwd]: "
290    read zip
291    if [ "$zip"x = x ]; then zip="$Pwd"; fi
292    cd .. && zip -r9 "$zip".zip "$Pwd" &&
293    echo ../"$zip".zip created.
294
295 + t d & f ^\.\.$
296 y  Compress the current subdirectory to zip recoding filenames
297    Pwd="`basename %d /`"
298    echo -n "Name of the distribution file (without extension) [$Pwd]: "
299    read zip
300    if [ "$zip"x = x ]; then zip="$Pwd"; fi
301    cd .. && zip.py "$zip".zip "$Pwd" &&
302    echo ../"$zip".zip created.
303
304 + t d & f ^\.\.$
305 7  Compress the current subdirectory to 7z
306    Pwd="`basename %d /`"
307    echo -n "Name of the distribution file (without extension) [$Pwd]: "
308    read ar
309    if [ "$ar"x = x ]; then ar="$Pwd"; fi
310    cd .. && 7zr a "$ar".7z "$Pwd" &&
311    echo ../"$ar".7z created.
312
313 + ! f \.(bz2|gz|lz|lzma|7z|xz|zip|ZIP)$ & t lr
314 z  bzip2 the file
315    exec bzip2 -9 %f
316
317 + ! f \.(z|Z|bz2|gz|lz|lzma)|(tbz2|tgz|tz|zip|ZIP|rar|RAR|xz|7z)$ & t lr
318 z  gzip the file
319    exec gzip -9 %f
320
321 + ! f \.(z|Z|bz2|gz|lz|lzma)|(tbz2|tgz|tz|zip|ZIP|rar|RAR|xz|7z)$ & t lr
322 z  lzip the file
323    exec lzip -9 %f
324
325 + ! f \.(z|Z|bz2|gz|lz|lzma)|(tbz2|tgz|tz|zip|ZIP|rar|RAR|xz|7z)$ & t lr
326 z  lzma the file
327    exec lzma -9 %f
328
329 + ! f \.(z|Z|bz2|gz|lz|lzma)|(tbz2|tgz|tz|zip|ZIP|rar|RAR|xz|7z)$ & t lr
330 z  7z the file/directory
331    exec 7zr a %f.7z %f
332
333 + ! f \.(z|Z|bz2|gz|lz|lzma)|(tbz2|tgz|tz|zip|ZIP|rar|RAR|xz|7z)$ & t lr
334 z  xz the file
335    exec xz -9 %f
336
337 + ! f \.(z|Z|bz2|gz|lz|lzma)|(tbz2|tgz|tz|zip|ZIP|rar|RAR|xz|7z)$ & t lr
338 z  zip the file/directory
339    exec zip -r9 %f.zip %f
340
341 + ! f \.(z|Z|bz2|gz|lz|lzma)|(tbz2|tgz|tz|zip|ZIP|rar|RAR|xz|7z)$ & t lr
342 y  zip the file/directory recoding filename(s)
343    exec zip.py %f.zip %f
344
345 + t t
346 Z  zip selected files/directories
347    ZIP=%{Enter zip name}
348    exec zip -r9 "$ZIP" %s
349
350 + t t
351 Y  zip selected files/directories recoding filenames
352    ZIP=%{Enter zip name}
353    exec zip.py "$ZIP" %s
354
355 + f \.(tar\.(z|Z|bz2|gz|lz|lzma))|(tbz2|tgz|tz|zip|ZIP|rar|RAR|xz|7z)$ & t lr
356 n  Create a directory for this archive
357    case %f in
358      *.tar.Z)    D="`basename %f .tar.Z`";;
359      *.tar.bz2)  D="`basename %f .tar.bz2`";;
360      *.tar.gz)   D="`basename %f .tar.gz`";;
361      *.tbz2)     D="`basename %f .tbz2`";;
362      *.tgz)      D="`basename %f .tgz`";;
363      *.tz)       D="`basename %f .tz`";;
364      *.tar.lz)   D="`basename %f .tar.lz`";;
365      *.tar.lzma) D="`basename %f .tar.lzma`";;
366      *.tar.7z)   D="`basename %f .tar.7z`";;
367      *.zip)      D="`basename %f .zip`";;
368      *.ZIP)      D="`basename %f .ZIP`";;
369      *.rar)      D="`basename %f .rar`";;
370      *.RAR)      D="`basename %f .RAR`";;
371      *.xz)       D="`basename %f .xz`";;
372      *.7z)       D="`basename %f .7z`";;
373    esac
374    exec mkdir "$D"
375
376 + F \.(tar\.(z|Z|bz2|gz|lz|lzma))|(tbz2|tgz|tz|zip|ZIP|rar|RAR|xz|7z)$ & T r
377 N  Create a directory for the other archive
378    case %D/%F in
379      *.tar.Z)    D="`basename %F .tar.Z`";;
380      *.tar.bz2)  D="`basename %F .tar.bz2`";;
381      *.tar.gz)   D="`basename %F .tar.gz`";;
382      *.tbz2)     D="`basename %F .tbz2`";;
383      *.tgz)      D="`basename %F .tgz`";;
384      *.tz)       D="`basename %F .tz`";;
385      *.tar.lz)   D="`basename %F .tar.lz`";;
386      *.tar.lzma) D="`basename %F .tar.lzma`";;
387      *.tar.7z)   D="`basename %F .tar.7z`";;
388      *.zip)      D="`basename %F .zip`";;
389      *.ZIP)      D="`basename %F .ZIP`";;
390      *.rar)      D="`basename %F .rar`";;
391      *.RAR)      D="`basename %F .RAR`";;
392      *.xz)       D="`basename %F .xz`";;
393      *.7z)       D="`basename %F .7z`";;
394    esac
395    exec mkdir "$D"
396
397 + f \.(tar\.(z|Z|bz2|gz|lz|lzma|7z|xz))|(tbz2|tgz|tz)$ & t lr
398 x  Extract the contents of a compressed tar file
399    unset PRG
400    case %f in
401       *.tar.bz2|*.tbz2)
402          PRG="bunzip2 -c"
403       ;;
404       *.tar.gz|*.tar.z|*.tgz|*.tz|*.tar.Z)
405          PRG="gzip -dc"
406       ;;
407       *.tar.lz)
408          PRG="lzip -dc"
409       ;;
410       *.tar.lzma)
411          PRG="lzma -dc"
412       ;;
413       *.tar.7z)
414          PRG="7zr e -so"
415       ;;
416       *.tar.xz)
417          PRG="xz -dc"
418       ;;
419       *)
420       exit 1
421       ;;
422    esac
423    $PRG %f | tar xvpf -
424
425 + F \.(tar\.(z|Z|bz2|gz|lz|lzma|7z|xz))|(tbz2|tgz|tz)$ & T r
426 X  Extract the contents of an other compressed tar file
427    unset PRG
428    case %F in
429       *.tar.bz2|*.tbz2)
430          PRG="bunzip2 -c"
431       ;;
432       *.tar.gz|*.tar.z|*.tgz|*.tz|*.tar.Z)
433          PRG="gzip -dc"
434       ;;
435       *.tar.lz)
436          PRG="lzip -dc"
437       ;;
438       *.tar.lzma)
439          PRG="lzma -dc"
440       ;;
441       *.tar.7z)
442          PRG="7zr e -so"
443       ;;
444       *.tar.xz)
445          PRG="xz -dc"
446       ;;
447       *)
448       exit 1
449       ;;
450    esac
451    $PRG %D/%F | tar xvpf -
452
453 + f \.(bz2|egg|gz|lz|lzma|7z|xz|tar|whl|zip|ZIP|rar|RAR)$ & t lr
454 x  Extract a compressed file
455    case %f in
456      *.bz2)  P="bzip2 -d";;
457      *.gz)   P="gzip -d";;
458      *.lz)   P="lzip -d";;
459      *.lzma) P="lzma -d";;
460      *.7z)   P="7zr x";;
461      *.xz)   P="xz -d";;
462      *.tar)  P="tar xvpf";;
463      *.egg|*.whl|*.zip|*.ZIP) P="unzip";;
464      *.rar|*.RAR) P="unrar x -y";;
465    esac
466    exec $P %f
467
468 + F \.(bz2|egg|gz|lz|lzma|7z|xz|tar|whl|zip|ZIP|rar|RAR)$ & T r
469 X  Extract another compressed file
470    case %F in
471      *.bz2)  P="bzip2 -d";;
472      *.gz)   P="gzip -d";;
473      *.lz)   P="lzip -d";;
474      *.lzma) P="lzma -d";;
475      *.7z)   P="7zr x";;
476      *.xz)   P="xz -d";;
477      *.tar)  P="tar xvpf";;
478      *.egg|*.whl|*.zip|*.ZIP) P="unzip";;
479      *.rar|*.RAR) P="unrar x -y";;
480    esac
481    exec $P %D/%F
482
483 + t lr & f \.(zip|ZIP)$
484 y  Extract from zip recoding filenames
485    exec unzip.py %f
486
487 + T r & F \.(zip|ZIP)$
488 Y  Extract from other zip recoding filenames
489    exec unzip.py %D/%F
490
491 + t lr
492 v  View via mailcap
493    exec see %f
494
495 + t lr
496 c  Compare the file
497    exec cmp %D/%f %f
498
499 + t lr & T r
500 C  Compare these files
501    exec cmp %D/%F %f
502
503 + t lr
504 d  Diff the file
505    exec diff -u --speed-large-files %D/%f %f
506
507 + t lr & T r
508 D  Diff these files
509    exec diff -u --speed-large-files %D/%F %f
510
511 + t lr
512 v  vimdiff the file
513    exec vim -d %D/%f %f
514
515 + t lr & T r
516 V  vimdiff these files
517    exec vim -d %D/%F %f
518
519 + t d & ! f ^\.\.$
520 d  Diff the directory
521    exec diff -ru --speed-large-files \
522       -x CVS -x .git -x .hg -x .svn -x '*.py[co]' -x __pycache__ %D/%f %f
523
524 + t d & T d & ! F ^\.\.$
525 D  Diff these directories
526    exec diff -ru --speed-large-files \
527       -x CVS -x .git -x .hg -x .svn -x '*.py[co]' -x __pycache__ %D/%F %f
528
529 += f \.(asc|gpg|sig(n)?)$ & t lr
530 v  Verify signature
531    exec gpg --verify %f
532
533 += f \.[1-8]$ | f \.man$ & t lr
534 1  Display the file with roff -man
535    %view nroff -man %f
536
537 m  View a manual page
538    MAN=%{Enter manual name}
539    %view man -P cat $MAN
540
541 + t dlr | t t
542 r  rsync the file(s) there
543    rsync -ahPv --del %s %D