From 5a60102380f52399d49665a91b6a7266637fd9c5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 7 Jul 2017 21:10:04 +0300 Subject: [PATCH] .mc/mc.ext: Add a regex for zip archives Default mc.ext recognizes zip by type which is not reliable - it recognizes JAR archives as JAR, not ZIP, for example. --- .mc/mc.ext | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.mc/mc.ext b/.mc/mc.ext index 99fc735..afb5f8a 100644 --- a/.mc/mc.ext +++ b/.mc/mc.ext @@ -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 & -- 2.39.5