From 9d46f0a0f72c69b5f5edde77bd2d3c2845feaffa Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 1 Dec 2021 17:05:00 +0300 Subject: [PATCH] mc.ext: View Python packages View Python packages (eggs and wheels) as ZIP files. --- .mc/mc.ext | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.mc/mc.ext b/.mc/mc.ext index 8a2cbcd..d95a106 100644 --- a/.mc/mc.ext +++ b/.mc/mc.ext @@ -75,7 +75,12 @@ regex/\.(cue|aac|ac3|ape|flac|wv|mka)$ # View=%view{ascii} cat %f # Compile=compyle %s # Icon=snake.xpm -# + +# Python packages +regex/\.(egg|whl)$ + Open=%cd %p/uzip:// + View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip + #regex/i/\.tiff?$ # Open=xview %f # @@ -88,10 +93,6 @@ regex/i/\.xml$ type/^XML *(1\.0 *)?document Include=xml -#regex/i/\.zip$ -# Open=%cd %p/uzip:// -# View=%view{ascii} unzip -v %f -# 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=mplayer %f & -- 2.39.5