]> git.phdru.name Git - dotfiles.git/blobdiff - .mc/menu
Fix(.vim/python/virtualenv.py): Only activate venv for the current version
[dotfiles.git] / .mc / menu
index 0ee123376373f31b4262a6b2d5406681738b4473..f5e1b68131e20b62b608b0795c2937a66f8e55d6 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -37,6 +37,10 @@ w  View the file in a new browser window
 t  View the file in a new browser tab
    exec webbrowser-encode-url -e utf-8 -t file://%d/%f
 
++ t lr
+p  View the file in a new private browser tab
+   exec webbrowser -p file://%d/%f
+
 += f \.fb2(\.bz2|\.gz|\.zip)?$ | f \.(chm|epub|htm(l?)|txt|rtf)$ & t lr
 f  View fb2/chm/epub with fbreader
    fbreader %f &
@@ -71,7 +75,7 @@ e  View pdf with evince
 
 += t lr & f \.(pdf|PDF)$
 e  View pdf with qpdfview
-   if [ "%d/%f" = "`echo %d/%f | iconv -t utf-8`" ]; then qpdfview %f & else src=%d/%f; dest="$HOME/tmp/`echo $src | iconv -t koi8-r | koi2lat | sed 's!/!%!g'`"; ln -s "$src" "$dest" && qpdfview "$dest" & (sleep 3; exec rm -f "$dest") & fi
+   if [ %d/%f = "`echo %d/%f | iconv -t utf-8`" ]; then qpdfview %f & else src=%d/%f; dest="$HOME/tmp/`echo $src | iconv -t koi8-r | koi2lat | sed 's!/!%!g'`"; ln -s "$src" "$dest" && qpdfview "$dest" & (sleep 3; exec rm -f "$dest") & fi
 
 += t lr & f \.djvu(\.bz2|\.gz)?$
 e  View djvu
@@ -113,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
@@ -307,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 ^\.\.$
@@ -354,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)
@@ -363,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