3 # This is necessary to overcome a bug in mc - without this
4 # mc makes default wrong item
8 @ Do something on all of the file(s) at once
13 @ Do something on the tagged files one by one
20 p View the file in the pager
24 b View the file in a browser
25 exec webbrowser file://%d/%f
28 w View the file in a new browser window
29 exec webbrowser -n file://%d/%f
33 t View the file in a new browser tab
34 exec webbrowser -t file://%d/%f
36 += f \.fb2(\.bz2|\.gz|\.zip)?$ | f \.(chm|epub|htm(l?)|txt|rtf)$ & t r
40 + t r & f \.fb2(\.bz2|\.gz|\.zip)$
43 *.fb2.bz2) A="bunzip2 -c" ;;
44 *.fb2.gz) A="gunzip -c" ;;
45 *.fb2.zip) A="unzip -p" ;;
48 $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_html_ru.xsl - | webstdin -t
50 + t r & f \.fb2(\.bz2|\.gz|\.zip)$
53 *.fb2.bz2) A="bunzip2 -c" ;;
54 *.fb2.gz) A="gunzip -c" ;;
55 *.fb2.zip) A="unzip -p" ;;
58 $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl - | webstdin -e txt -t
60 += t r & f \.(pdf|PDF|djvu)(\.bz2|\.gz)?$
64 += t r & f \.(doc|DOC|rtf)$
68 += t r & f \.(xls|XLS)$
72 + t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ | t t
73 = t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$
74 i View image(s) scaled
77 + t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ | t t
78 I View image(s) full size
81 + t r & f \.(ico|jp2|tif|TIF|tiff|TIFF)$ | t t
82 = t r & f \.(ico|jp2|tif|TIF|tiff|TIFF)$
83 I View icon, JPEG-2000 or TIFF image
86 + t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|pls|wv)$ | t t
87 a Add the audiofile(s) or playlist(s)
88 #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi
90 # audtool --playlist-addurl "$f"
92 #smplayer -add-to-playlist %s &
95 + t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|pls|wv)$ | t t
96 = t r & f \.(m3u|mp3|MP3|cue|ac3|ape|flac|wv)$
97 p Load the audiofile(s) or playlist(s)
98 #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi
99 #audtool --playlist-clear
101 # audtool --playlist-addurl "$f"
103 #smplayer -send-action pl_remove_all
104 #smplayer -add-to-playlist %s &
105 deadbeef --queue %s &
107 + t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|pls|wv)$ | t t
108 P Play the audiofile(s) or playlist(s)
109 #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi
110 #audtool --playlist-clear
112 # audtool --playlist-addurl "$f"
114 #exec audtool --playback-play
115 #mplayer -playlist %f &
118 #exec mediaplayer_open %f
121 R Play the playlist in random order
122 "$HOME"/admin/prog/audio-cdr-video/shuffle-playlist.py %f random-playlist-tmp.m3u
123 #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi
124 #audtool --playlist-clear
125 #audtool --playlist-addurl random-playlist-tmp.m3u
126 #audtool --playback-play
127 #mplayer -playlist random-playlist-tmp.m3u &
128 #smplayer random-playlist-tmp.m3u &
129 #smplayer -actions pl_shuffle %f &
130 deadbeef --queue random-playlist-tmp.m3u & deadbeef --play
131 #mediaplayer_open random-playlist-tmp.m3u
132 (sleep 5; exec rm random-playlist-tmp.m3u) &
134 + f \.(aac|ac3|ape|cue|flac|m3u|mp3|MP3|pls|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wmv)$ | t d | t t
135 = t r & f \.(aac|ac3|ape|cue|flac|m3u|mp3|MP3|pls|wv|avi|AVI|flv|iso|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wmv)$
136 s Play audio/video file(s) or directory with smplayer
139 += t d & f (video_ts|VIDEO_TS)$
140 c Play the current directory with smplayer
143 + t r & f \.(m3u|mp3|MP3|cue|aac|ac3|ape|flac|pls|wv|avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wmv)$ | t t
145 exec mplayer -msglevel identify=6 -frames 0 %s
147 + t d & f (video_ts|VIDEO_TS)$
149 exec mplayer -dvd-device . dvd:// -msglevel identify=6 -frames 0
151 + f \.(avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wmv)$ | t t
152 m Play video file(s) with mplayer
155 + f \.(m3u|mp3|MP3|cue|aac|ac3|ape|flac|pls|wv|avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wmv)$ | t t
156 M Play audio/video with gmplayer
159 + t d & f (video_ts|VIDEO_TS)$
160 d Play DVD directory with mplayer
161 mplayer -dvd-device . dvd:// &
163 + t d & f (video_ts|VIDEO_TS)$
164 D Play DVD directory with gmplayer
165 gmplayer -dvd-device . dvd:// &
167 + t d & f (video_ts|VIDEO_TS)$
168 t Play DVD title with mplayer
170 mplayer -dvd-device . dvd://"$title" &
172 + t d & f (video_ts|VIDEO_TS)$
173 T Play DVD title with gmplayer
175 gmplayer -dvd-device . dvd://"$title" &
178 p Play directory with mplayer
182 P Play directory with gmplayer
186 b Make a .tar.bz2 release of the current directory
187 Pwd="`basename %d /`"
188 echo -n "Name of the distribution file (without extension) [$Pwd]: "
190 if [ "$tar"x = x ]; then tar="$Pwd"; fi
191 cd .. && tar cvf - "$Pwd" | bzip2 -f9 > "$tar".tar.bz2
192 echo ../"$tar".tar.bz2 created.
195 g Make a .tar.gz release of the current directory
196 Pwd="`basename %d /`"
197 echo -n "Name of the distribution file (without extension) [$Pwd]: "
199 if [ "$tar"x = x ]; then tar="$Pwd"; fi
200 cd .. && tar cvf - "$Pwd" | gzip -f9 > "$tar".tar.gz
201 echo ../"$tar".tar.gz created.
204 t Make a .tar release of the current directory
205 Pwd="`basename %d /`"
206 echo -n "Name of the distribution file (without extension) [$Pwd]: "
208 if [ "$tar"x = x ]; then tar="$Pwd"; fi
209 cd .. && tar cvf - "$Pwd" > "$tar".tar
210 echo ../"$tar".tar created.
213 z Make a .zip release of the current directory
214 Pwd="`basename %d /`"
215 echo -n "Name of the distribution file (without extension) [$Pwd]: "
217 if [ "$zip"x = x ]; then zip="$Pwd"; fi
218 cd .. && zip -r9 "$zip".zip "$Pwd"
219 echo ../"$zip".zip created.
222 y Make a .zip release of the current directory with recoded filenames
223 Pwd="`basename %d /`"
224 echo -n "Name of the distribution file (without extension) [$Pwd]: "
226 if [ "$zip"x = x ]; then zip="$Pwd"; fi
227 cd .. && zip.py "$zip".zip "$Pwd"
228 echo ../"$zip".zip created.
230 + ! f \.(\.|zip|ZIP)$
231 z zip the file/directory
232 exec zip -r9 %f.zip %f
234 + ! f \.(\.|zip|ZIP)$
235 y zip the file/directory with recoded filename(s)
236 exec zip.py %f.zip %f
239 Z zip these files/directories
240 ZIP=%{Enter zip name}
241 exec zip -r9 "$ZIP" %s
244 Y zip these files/directories with recoded filenames
245 ZIP=%{Enter zip name}
246 exec zip.py "$ZIP" %s
248 + t r & f \.tar\.bz2$
249 u Extract from tar-bzip2
250 exec bzip2 -cd %f | tar xpvf -
252 + f \.tar\.gz$ | f \.tgz$ & t r
253 u Extract from tar-gzip
254 exec gzip -cd %f | tar xpvf -
260 + t r & f \.(zip|ZIP)$
264 + t r & f \.(zip|ZIP)$
265 y Extract from zip with recoded filenames
272 + t r & f \.(rar|RAR)$
277 u Extract from tar-xz
278 exec xz -cd %f | tar xpvf -
280 + T r & F \.tar\.bz2$
281 U Extract from the other tar-bzip2
282 exec bzip2 -cd %D/%F | tar xpvf -
284 + F \.tar\.gz$ | F \.tgz$ & T r
285 U Extract from the other tar-gzip
286 exec gzip -cd %D/%F | tar xpvf -
289 U Extract from the other tar
292 + T r & F \.(zip|ZIP)$
293 U Extract from the other zip
296 + T r & F \.(zip|ZIP)$
297 Y Extract from the other zip with recoded filenames
300 + T r & F \.(rar|RAR)$
301 U Extract from the other rar
302 exec unrar x -y %D/%F
309 U Extract from tar-xz
310 exec xz -cd %D/%F | tar xpvf -
312 + f \.tar\.bz2$ | f \.tar\.gz$ | f \.tgz$ | f \.(zip|ZIP)$ | f \.(rar|RAR)$ | f \.7z$ & t r
313 n Create a directory for this archive
315 *.tar.bz2) D="`basename %f .tar.bz2`";;
316 *.tar.gz) D="`basename %f .tar.gz`";;
317 *.tgz) D="`basename %f .tgz`";;
318 *.zip) D="`basename %f .zip`";;
319 *.ZIP) D="`basename %f .ZIP`";;
320 *.rar) D="`basename %f .rar`";;
321 *.RAR) D="`basename %f .RAR`";;
322 *.7z) D="`basename %f .7z`";;
335 C Compare these files
340 exec diff -u --speed-large-files %D/%f %f
344 exec diff -u --speed-large-files %D/%F %f
351 V vimdiff these files
356 exec diff -ru --speed-large-files %D/%f %f
358 + t d & T d & ! F ^\.\.$
359 D Diff these directories
360 exec diff -ru --speed-large-files %D/%F %f
362 += f \.(asc|sig(n)?)$ & t r
366 += f \.[1-8]$ | f \.man$ & t r
367 1 Display the file with roff -man
371 MAN=%{Enter manual name}
372 %view man -P cat $MAN
375 r rsync the file(s) there
376 rsync -ahP --del %s %D