From: Oleg Broytman Date: Tue, 16 Sep 2014 00:51:23 +0000 (+0400) Subject: Add a menu item to create a directory for archive in the other panel X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=09a5093e5b79c22566ccdc572d34b06430336362;p=dotfiles.git Add a menu item to create a directory for archive in the other panel --- diff --git a/.mc/menu b/.mc/menu index d31b3f8..42d7263 100644 --- a/.mc/menu +++ b/.mc/menu @@ -327,6 +327,20 @@ n Create a directory for this archive esac exec mkdir "$D" ++ F \.tar\.bz2$ | F \.tar\.gz$ | F \.tgz$ | F \.(zip|ZIP)$ | F \.(rar|RAR)$ | F \.7z$ & T r +N Create a directory for this archive + case %F in + *.tar.bz2) D="`basename %F .tar.bz2`";; + *.tar.gz) D="`basename %F .tar.gz`";; + *.tgz) D="`basename %F .tgz`";; + *.zip) D="`basename %F .zip`";; + *.ZIP) D="`basename %F .ZIP`";; + *.rar) D="`basename %F .rar`";; + *.RAR) D="`basename %F .RAR`";; + *.7z) D="`basename %F .7z`";; + esac + exec mkdir "$D" + + t r v View via mailcap exec see %f