From: Oleg Broytman Date: Wed, 1 Dec 2021 14:05:00 +0000 (+0300) Subject: mc.ext: View Python packages X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=9d46f0a0f72c69b5f5edde77bd2d3c2845feaffa;p=dotfiles.git mc.ext: View Python packages View Python packages (eggs and wheels) as ZIP files. --- 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 &