]> git.phdru.name Git - dotfiles.git/blobdiff - .mc/mc.ext
.mc/mc.ext: `*.inpx` are zip files
[dotfiles.git] / .mc / mc.ext
index ade8966223f9021b0484d91aeda7f8d6dadbeaaf..10104439555fd9143c111cdbb8f650774002ddcd 100644 (file)
@@ -75,7 +75,11 @@ regex/\.(cue|aac|ac3|ape|flac|wv|mka)$
 #   View=%view{ascii} cat %f
 #   Compile=compyle %s
 #   Icon=snake.xpm
-#
+
+# Python packages
+regex/\.(egg|whl)$
+   Include=zip
+
 #regex/i/\.tiff?$
 #   Open=xview %f
 #
@@ -88,14 +92,14 @@ regex/i/\.xml$
 type/^XML *(1\.0 *)?document
    Include=xml
 
-#regex/i/\.zip$
-#   Open=%cd %p/uzip://
-#   View=%view{ascii} unzip -v %f
-#
+# LRE/Flibusta INPX
+regex/\.(inpx)$
+   Include=zip
+
 include/audio
-   Open=[ "`audtool --get-volume`" -eq 0 ] && (audacious & sleep 3); audtool --playlist-clear; case %f in *.m3u8?) while read song; do audtool --playlist-addurl "$song"; done < %f ;; *) audtool --playlist-addurl %f ;; esac; audtool --playback-play
+   #Open=[ "`audtool --get-volume`" -eq 0 ] && (audacious & sleep 3); audtool --playlist-clear; case %f in *.m3u8?) while read song; do audtool --playlist-addurl "$song"; done < %f ;; *) audtool --playlist-addurl %f ;; esac; audtool --playback-play
    #Open=mplayer %f &
-   #Open=deadbeef %f &
+   Open=deadbeef %f &
    View=%view{ascii} cat %f
 
 include/msoffice-doc
@@ -115,6 +119,10 @@ include/msoffice-xlsx
 include/xml
    Open=%cd %p/xml://
 
+include/zip
+       Open=%cd %p/uzip://
+       View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
+
 ### /phd
 
 # Midnight Commander 3.0 extension file