# This is necessary to overcome a bug in mc - without this
# mc makes default wrong item
-N NOOP
+: NOOP
:
@ Do something on all of the file(s) at once
+ t r
p View the file in the pager
- exec $PAGER %f
+ exec ${PAGER:-more} %f
+ t r
b View the file in a browser
+= t r & f \.(doc|DOC|rtf)$
d catdoc
- catdoc %f | less
+ catdoc %f | ${PAGER:-more}
+= t r & f \.(docx|DOCX)$
d docx2txt
- docx2txt %f - | less
+ docx2txt %f - | ${PAGER:-more}
+= t r & f \.(xls|XLS)$
x xls2csv
- xls2csv %f | less
+ xls2csv %f | ${PAGER:-more}
+ t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ | t t
= t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$
esac
exec mkdir "$D"
++ F \.tar\.bz2$ | F \.tar\.gz$ | F \.tgz$ | F \.(zip|ZIP)$ | F \.(rar|RAR)$ | F \.7z$ & T r
+N Create a directory for this archive
+ case %F in
+ *.tar.bz2) D="`basename %F .tar.bz2`";;
+ *.tar.gz) D="`basename %F .tar.gz`";;
+ *.tgz) D="`basename %F .tgz`";;
+ *.zip) D="`basename %F .zip`";;
+ *.ZIP) D="`basename %F .ZIP`";;
+ *.rar) D="`basename %F .rar`";;
+ *.RAR) D="`basename %F .RAR`";;
+ *.7z) D="`basename %F .7z`";;
+ esac
+ exec mkdir "$D"
+
+ t r
v View via mailcap
exec see %f