X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.mc%2Fmenu;h=393bf298c5a2c8f840ce19bdbcb30741a637df31;hb=HEAD;hp=08fce495a3f6a5989b7ae6de4d664b7a2fbc3d95;hpb=655c228789cb93051f0f8ee0841f547c41b57374;p=dotfiles.git diff --git a/.mc/menu b/.mc/menu index 08fce49..f5e1b68 100644 --- a/.mc/menu +++ b/.mc/menu @@ -117,11 +117,11 @@ e Edit image(s) + t lr & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$ | t t = t lr & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$ i View image(s) scaled - xli -title "`echo %s | sed 's/ /_/g'`" -zoom auto %s & + xli -title "`echo %s | sed 's/[ .]/_/g'`" -zoom auto %s & + t lr & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$ | t t I View image(s) full size - xli -title "`echo %s | sed 's/ /_/g'`" %s & + xli -title "`echo %s | sed 's/[ .]/_/g'`" %s & + t lr & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$ I Identify image @@ -311,7 +311,7 @@ z Compress the current subdirectory to zip echo -n "Name of the distribution file (without extension) [$Pwd]: " read zip if [ "$zip"x = x ]; then zip="$Pwd"; fi - cd .. && zip -r9 "$zip".zip "$Pwd" && + cd .. && zip -ry9 "$zip".zip "$Pwd" && echo ../"$zip".zip created. + t d & f ^\.\.$ @@ -358,7 +358,7 @@ z xz the file + ! f \.(z|Z|bz2|gz|lz|lzma)|(tbz2|tgz|tz|zip|ZIP|rar|RAR|xz|7z)$ & t lr z zip the file/directory - exec zip -r9 %f.zip %f + exec zip -ry9 %f.zip %f + ! f \.(z|Z|bz2|gz|lz|lzma)|(tbz2|tgz|tz|zip|ZIP|rar|RAR|xz|7z)$ & t lr y zip the file/directory recoding filename(s) @@ -367,7 +367,7 @@ y zip the file/directory recoding filename(s) + t t Z zip selected files/directories ZIP=%{Enter zip name} - exec zip -r9 "$ZIP" %s + exec zip -ry9 "$ZIP" %s + t t Y zip selected files/directories recoding filenames