]> git.phdru.name Git - dotfiles.git/commitdiff
.mc/mc.ext: Refactor opening/viewing zip files
authorOleg Broytman <phd@phdru.name>
Mon, 3 Jan 2022 23:11:04 +0000 (02:11 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 3 Jan 2022 23:11:04 +0000 (02:11 +0300)
.mc/mc.ext

index d95a1064b449fc2f452c712da05581588b4905f7..a5312ac0b6dbabde3a8e0d6f09239fcb56167505 100644 (file)
@@ -78,8 +78,7 @@ regex/\.(cue|aac|ac3|ape|flac|wv|mka)$
 
 # Python packages
 regex/\.(egg|whl)$
-       Open=%cd %p/uzip://
-       View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
+   Include=zip
 
 #regex/i/\.tiff?$
 #   Open=xview %f
@@ -116,6 +115,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