From 09a5093e5b79c22566ccdc572d34b06430336362 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 16 Sep 2014 04:51:23 +0400 Subject: [PATCH] Add a menu item to create a directory for archive in the other panel --- .mc/menu | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- 2.39.5