]> git.phdru.name Git - dotfiles.git/blobdiff - .mc/mc.ext
.mc/: Upgrade debian to D9 "stretch"
[dotfiles.git] / .mc / mc.ext
index 6a91d165067447bd2b240346e57d5d1374d96720..c55d41a8ccd34792db2266a8abceaf49d1e3754e 100644 (file)
@@ -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
@@ -693,7 +694,8 @@ shell/.chm
 # DejaVu
 shell/.djvu
    #Open=djview %f &
-   Open=evince %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
@@ -750,15 +769,24 @@ regex/\.([xX][mM][lL])$
 type/^XML *(1\.0 *)?document text
    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