X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.mc%2Fmc.ext;h=b20df183a52012dbfe2fce0189e658072c958c61;hb=1751a6dde6882ca2ec77adb6ae6181d05701147c;hp=6a91d165067447bd2b240346e57d5d1374d96720;hpb=50fc7abed75564df09ca04a14cec91f709123db6;p=dotfiles.git diff --git a/.mc/mc.ext b/.mc/mc.ext index 6a91d16..b20df18 100644 --- a/.mc/mc.ext +++ b/.mc/mc.ext @@ -406,7 +406,7 @@ shell/.xpm shell/.ico Include=image -include/oldimage +include/image Open=(see %f &) View=%view{ascii} identify %f #View=%view{ascii} asciiview %f @@ -441,10 +441,10 @@ include/oldimage #regex/\.([wW][mM][aA])$ # Open=mplayer -vo null %f # View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f - - -### Play lists ### - +# +# +#### Play lists ### +# #regex/\.([mM]3[uU]|[pP][lL][sS])$ # Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f >/dev/null 2>&1 &); fi @@ -501,7 +501,7 @@ include/oldvideo # Postscript type/^PostScript - Open=(gv %f &) +# Open=(gv %f &) View=%view{ascii} ps2ascii %f # PDF @@ -525,6 +525,7 @@ shell/.sdw # StarOffice 6 and OpenOffice.org formats regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$ + Edit=(libreoffice %f &) Open=(libreoffice %f &) View=%view{ascii} odt2txt %f @@ -533,14 +534,14 @@ shell/.abw Open=(abiword %f &) # Microsoft Word Document -regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$ - Open=(abiword %f >/dev/null 2>&1 &) - View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f -type/^Microsoft\ Word - Open=(abiword %f >/dev/null 2>&1 &) - View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f - -# RTF document +#regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$ +# Open=(abiword %f >/dev/null 2>&1 &) +# View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f +#type/^Microsoft\ Word +# Open=(abiword %f >/dev/null 2>&1 &) +# View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f +# +## RTF document #regex/\.([rR][tT][fF])$ # Open=(abiword %f >/dev/null 2>&1 &) @@ -553,8 +554,8 @@ type/^Microsoft\ Excel View=%view{ascii} xls2csv %f || strings %f # Use OpenOffice.org to open any MS Office documents -type/^Microsoft\ Office\ Document - Open=(libreoffice %f &) +#type/^Microsoft\ Office\ Document +# Open=(libreoffice %f &) # Framemaker type/^FrameMaker @@ -692,8 +693,9 @@ shell/.chm # DejaVu shell/.djvu - #Open=djview %f & - Open=evince %f & + Open=djview %f & + #Open=evince %f & + #Open=qpdfview %f & # EPUB shell/.epub @@ -704,11 +706,33 @@ shell/.fb2 Open=fbreader %f & View=%view{ascii} xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl %f +type/^PostScript + #Open=evince %f & + Open=qpdfview %f & + View=%view{ascii} ps2ascii %f + # RTF regex/\.([rR][tT][fF])$ Open=fbreader %f & View=%view{ascii} catdoc %f +regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$ + Include=msoffice + +regex/\.([Dd][oO][cC][Xx])$ + Edit=libreoffice %f & + Open=libreoffice %f & + View=%view{ascii} docx2txt %f - | iconv.py -f utf-8 + +type/^Microsoft\ Word + Include=msoffice + +type/^Microsoft\ Office\ Document + Include=msoffice + +type/^Composite\ Document\ File + Include=msoffice + # ftplist regex/\.ftplist$ Open=%cd %p#ftplist @@ -726,11 +750,6 @@ shell/.o View=%view{ascii} nm %f Disassemble=%view{ascii} objdump -d -r %f -# Python eggs are zip archives -shell/.egg - Open=%cd %p/uzip:// - View=%view{ascii} unzip -v %f - # Python shell/.py Open=python %f @@ -747,18 +766,27 @@ shell/.torrent regex/\.([xX][mM][lL])$ Include=xml -type/^XML *(1\.0 *)?document text +type/^XML *(1\.0 *)?document Include=xml +regex/\.([Zz][Ii][Pp])$ + Open=%cd %p/uzip:// + View=%view{ascii} unzip -v %f + include/audio #Open=[ "`audtool --get-volume`" -eq 0 ] && (audacious & sleep 3); audtool --playlist-clear --playlist-addurl %f --playback-play - #Open=smplay %f & + #Open=mplayer %f & Open=deadbeef %f & #Open=mediaplayer_open %f View=%view{ascii} %f +include/msoffice + Edit=libreoffice %f & + Open=libreoffice %f & + View=%view{ascii} catdoc %f + include/video - Open=smplay %f & + Open=mplayer %f & #Open=mediaplayer_open %f View=%view{ascii} %f