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 a pager
21 exec ${PAGER:-more} %f
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
37 f View fb2/chm/epub with fbreader
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)?$
61 e View pdf/djvu with evince
64 += t r & f \.(doc|DOC|rtf)$
65 d View doc with catdoc
66 catdoc %f | ${PAGER:-more}
68 += t r & f \.(docx|DOCX)$
69 d View docx with docx2txt
70 docx2txt %f - | ${PAGER:-more}
72 += t r & f \.(xls|XLS)$
73 x View xls with xls2csv
74 xls2csv %f | ${PAGER:-more}
76 + t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ | t t
77 = t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$
78 i View image(s) scaled
79 xli -title "`echo %s | sed 's/ /_/g'`" -zoom auto %s &
81 + t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ | t t
82 I View image(s) full size
83 xli -title "`echo %s | sed 's/ /_/g'`" %s &
85 + t r & f \.(ico|jp2|tif|TIF|tiff|TIFF)$ | t t
86 = t r & f \.(ico|jp2|tif|TIF|tiff|TIFF)$
87 I View icon, JPEG-2000 or TIFF image
90 + t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ | t t
91 a Add the audiofile(s) or playlist(s)
92 #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi
94 # audtool --playlist-addurl "$f"
96 #smplayer -add-to-playlist %s &
99 + t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ | t t
100 = t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$
101 p Load the audiofile(s) or playlist(s)
102 #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi
103 #audtool --playlist-clear
105 # audtool --playlist-addurl "$f"
107 #smplayer -send-action pl_remove_all
108 #smplayer -add-to-playlist %s &
109 deadbeef --queue %s &
111 + t r & f \.(aac|ac3|ape|cue|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ | t t
112 P Play the audiofile(s) or playlist(s)
113 #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi
114 #audtool --playlist-clear
116 # audtool --playlist-addurl "$f"
118 #exec audtool --playback-play
119 #mplayer -playlist %f &
122 #exec mediaplayer_open %f
125 R Play the playlist in random order
126 "$HOME"/admin/prog/audio-cdr-video/audio/shuffle-playlist.py %f random-playlist-tmp.m3u
127 #if [ "`audtool --get-volume`" -eq 0 ]; then cgmem_nice 500 audacious & sleep 3; fi
128 #audtool --playlist-clear
129 #audtool --playlist-addurl random-playlist-tmp.m3u
130 #audtool --playback-play
131 #mplayer -playlist random-playlist-tmp.m3u &
132 #smplayer random-playlist-tmp.m3u &
133 #smplayer -actions pl_shuffle %f &
134 deadbeef --queue random-playlist-tmp.m3u & deadbeef --play
135 #mediaplayer_open random-playlist-tmp.m3u
136 (sleep 5; exec rm random-playlist-tmp.m3u) &
138 + f \.(aac|ac3|ape|cue|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
139 = t r & f \.(aac|ac3|ape|cue|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)$
140 s Play audio/video file(s) or directory with smplayer
143 += t d & f (video_ts|VIDEO_TS)$
144 c Play the current directory with smplayer
147 + t r & f \.(m3u|mp3|MP3|cue|aac|ac3|ape|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
149 exec mplayer -msglevel identify=6 -frames 0 %s
151 + t d & f (video_ts|VIDEO_TS)$
153 exec mplayer -dvd-device . dvd:// -msglevel identify=6 -frames 0
155 + f \.(avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$ | t t
156 m Play video file(s) with mplayer
159 + f \.(m3u|mp3|MP3|cue|aac|ac3|ape|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
160 M Play audio/video with gmplayer
163 + t d & f (video_ts|VIDEO_TS)$
164 d Play DVD directory with mplayer
165 mplayer -dvd-device . dvd:// &
167 + t d & f (video_ts|VIDEO_TS)$
168 D Play DVD directory with gmplayer
169 gmplayer -dvd-device . dvd:// &
171 + t d & f (video_ts|VIDEO_TS)$
172 t Play DVD title with mplayer
174 mplayer -dvd-device . dvd://"$title" &
176 + t d & f (video_ts|VIDEO_TS)$
177 T Play DVD title with gmplayer
179 gmplayer -dvd-device . dvd://"$title" &
182 p Play directory with mplayer
186 P Play directory with gmplayer
190 b Make a .tar.bz2 release of the current directory
191 Pwd="`basename %d /`"
192 echo -n "Name of the distribution file (without extension) [$Pwd]: "
194 if [ "$tar"x = x ]; then tar="$Pwd"; fi
195 cd .. && tar cvf - "$Pwd" | bzip2 -f9 > "$tar".tar.bz2
196 echo ../"$tar".tar.bz2 created.
199 g Make a .tar.gz release of the current directory
200 Pwd="`basename %d /`"
201 echo -n "Name of the distribution file (without extension) [$Pwd]: "
203 if [ "$tar"x = x ]; then tar="$Pwd"; fi
204 cd .. && tar cvf - "$Pwd" | gzip -f9 > "$tar".tar.gz
205 echo ../"$tar".tar.gz created.
208 t Make a .tar release of the current directory
209 Pwd="`basename %d /`"
210 echo -n "Name of the distribution file (without extension) [$Pwd]: "
212 if [ "$tar"x = x ]; then tar="$Pwd"; fi
213 cd .. && tar cvf - "$Pwd" > "$tar".tar
214 echo ../"$tar".tar created.
217 z Make a .zip release of the current directory
218 Pwd="`basename %d /`"
219 echo -n "Name of the distribution file (without extension) [$Pwd]: "
221 if [ "$zip"x = x ]; then zip="$Pwd"; fi
222 cd .. && zip -r9 "$zip".zip "$Pwd"
223 echo ../"$zip".zip created.
226 y Make a .zip release of the current directory with recoded filenames
227 Pwd="`basename %d /`"
228 echo -n "Name of the distribution file (without extension) [$Pwd]: "
230 if [ "$zip"x = x ]; then zip="$Pwd"; fi
231 cd .. && zip.py "$zip".zip "$Pwd"
232 echo ../"$zip".zip created.
234 + ! f \.(\.|zip|ZIP)$
235 z zip the file/directory
236 exec zip -r9 %f.zip %f
238 + ! f \.(\.|zip|ZIP)$
239 y zip the file/directory with recoded filename(s)
240 exec zip.py %f.zip %f
243 Z zip these files/directories
244 ZIP=%{Enter zip name}
245 exec zip -r9 "$ZIP" %s
248 Y zip these files/directories with recoded filenames
249 ZIP=%{Enter zip name}
250 exec zip.py "$ZIP" %s
252 + t r & f \.tar\.bz2$
253 u Extract from tar-bzip2
254 exec bzip2 -cd %f | tar xpvf -
256 + f \.tar\.gz$ | f \.tgz$ & t r
257 u Extract from tar-gzip
258 exec gzip -cd %f | tar xpvf -
264 + t r & f \.(zip|ZIP)$
268 + t r & f \.(zip|ZIP)$
269 y Extract from zip with recoded filenames
276 + t r & f \.(rar|RAR)$
281 u Extract from tar-xz
282 exec xz -cd %f | tar xpvf -
284 + T r & F \.tar\.bz2$
285 U Extract from the other tar-bzip2
286 exec bzip2 -cd %D/%F | tar xpvf -
288 + F \.tar\.gz$ | F \.tgz$ & T r
289 U Extract from the other tar-gzip
290 exec gzip -cd %D/%F | tar xpvf -
293 U Extract from the other tar
296 + T r & F \.(zip|ZIP)$
297 U Extract from the other zip
300 + T r & F \.(zip|ZIP)$
301 Y Extract from the other zip with recoded filenames
304 + T r & F \.(rar|RAR)$
305 U Extract from the other rar
306 exec unrar x -y %D/%F
313 U Extract from tar-xz
314 exec xz -cd %D/%F | tar xpvf -
316 + f \.tar\.bz2$ | f \.tar\.gz$ | f \.tgz$ | f \.(zip|ZIP)$ | f \.(rar|RAR)$ | f \.7z$ & t r
317 n Create a directory for this archive
319 *.tar.bz2) D="`basename %f .tar.bz2`";;
320 *.tar.gz) D="`basename %f .tar.gz`";;
321 *.tgz) D="`basename %f .tgz`";;
322 *.zip) D="`basename %f .zip`";;
323 *.ZIP) D="`basename %f .ZIP`";;
324 *.rar) D="`basename %f .rar`";;
325 *.RAR) D="`basename %f .RAR`";;
326 *.7z) D="`basename %f .7z`";;
330 + F \.tar\.bz2$ | F \.tar\.gz$ | F \.tgz$ | F \.(zip|ZIP)$ | F \.(rar|RAR)$ | F \.7z$ & T r
331 N Create a directory for this archive
333 *.tar.bz2) D="`basename %F .tar.bz2`";;
334 *.tar.gz) D="`basename %F .tar.gz`";;
335 *.tgz) D="`basename %F .tgz`";;
336 *.zip) D="`basename %F .zip`";;
337 *.ZIP) D="`basename %F .ZIP`";;
338 *.rar) D="`basename %F .rar`";;
339 *.RAR) D="`basename %F .RAR`";;
340 *.7z) D="`basename %F .7z`";;
353 C Compare these files
358 exec diff -u --speed-large-files %D/%f %f
362 exec diff -u --speed-large-files %D/%F %f
369 V vimdiff these files
374 exec diff -ru --speed-large-files %D/%f %f
376 + t d & T d & ! F ^\.\.$
377 D Diff these directories
378 exec diff -ru --speed-large-files %D/%F %f
380 += f \.(asc|sig(n)?)$ & t r
384 += f \.[1-8]$ | f \.man$ & t r
385 1 Display the file with roff -man
389 MAN=%{Enter manual name}
390 %view man -P cat $MAN
393 r rsync the file(s) there
394 rsync -ahP --del %s %D