]> git.phdru.name Git - dotfiles.git/commitdiff
.mc/mc.ext: Add a regex for zip archives
authorOleg Broytman <phd@phdru.name>
Fri, 7 Jul 2017 18:10:04 +0000 (21:10 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 7 Jul 2017 18:10:04 +0000 (21:10 +0300)
Default mc.ext recognizes zip by type which is not reliable -
it recognizes JAR archives as JAR, not ZIP, for example.

.mc/mc.ext

index 99fc7355dfcea030ad13fdb1f6c4fb671ee02d85..afb5f8a38bc641991f06707da9b4255143ba3680 100644 (file)
@@ -769,6 +769,10 @@ 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=smplayer %f &