X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.mc%2Fmc.ext;h=2efbc07bb46b4d66bd89a617368333275b286d86;hb=2744fdafdc1cbd5ef21774e3354f22d5f40635f2;hp=b2ccef6fd6951842c694cebe687b279cdf1dc4d8;hpb=687101d3012596f0e05e0bab7f8f8bb79a8bbc3b;p=dotfiles.git diff --git a/.mc/mc.ext b/.mc/mc.ext index b2ccef6..2efbc07 100644 --- a/.mc/mc.ext +++ b/.mc/mc.ext @@ -173,7 +173,7 @@ regex/\.([Hh][Aa])$ # rar regex/\.[rR]([aA][rR]|[0-9][0-9])$ Open=%cd %p/urar:// - View=%view{ascii} rar v -c- %f + View=%view{ascii} unrar v -c- %f # ALZip regex/\.(alz|ALZ)$ @@ -378,8 +378,8 @@ type/^PC\ bitmap type/^PNG Include=image -#type/^TIFF -# Include=image +type/^TIFF + Include=image type/^PBM Include=image @@ -441,10 +441,10 @@ include/image #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 @@ -491,7 +491,7 @@ regex/\.([oO][gG][mM])$ regex/\.([rR][aA]?[mM])$ Open=(realplay %f >/dev/null 2>&1 &) -#include/video +include/oldvideo Open=(mplayer %f >/dev/null 2>&1 &) #Open=(gtv %f >/dev/null 2>&1 &) #Open=(xanim %f >/dev/null 2>&1 &) @@ -501,11 +501,12 @@ regex/\.([rR][aA]?[mM])$ # Postscript type/^PostScript - Open=(gv %f &) +# Open=(gv %f &) View=%view{ascii} ps2ascii %f # PDF type/^PDF + Edit=libreoffice %f & Open=(see %f &) #Open=(acroread %f &) #Open=(ghostview %f &) @@ -525,6 +526,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 +535,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 +555,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 +694,7 @@ shell/.chm # DejaVu shell/.djvu - #Open=djview %f & - Open=evince %f & + Open=djview %f & # EPUB shell/.epub @@ -704,11 +705,32 @@ shell/.fb2 Open=fbreader %f & View=%view{ascii} xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl %f +type/^PostScript + Open=libreoffice %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-doc + +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-doc + +type/^Microsoft\ Office\ Document + Include=msoffice-doc + +type/^Composite\ Document\ File + Include=msoffice-doc + # ftplist regex/\.ftplist$ Open=%cd %p#ftplist @@ -726,11 +748,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,19 +764,26 @@ 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=deadbeef %f & - #Open=mediaplayer_open %f + Open=[ "`audtool --get-volume`" -eq 0 ] && (audacious & sleep 3); audtool --playlist-clear --playlist-addurl %f --playback-play + #Open=mplayer %f & + #Open=deadbeef %f & View=%view{ascii} %f +include/msoffice-doc + Edit=libreoffice %f & + Open=libreoffice %f & + View=%view{ascii} catdoc %f + include/video - Open=smplay %f & - #Open=mediaplayer_open %f + Open=mplayer %f & View=%view{ascii} %f include/xml