]> git.phdru.name Git - dotfiles.git/blobdiff - .mc/menu
.mc/menu: Use selected (`%s`) instead of tagged (`%t`) files
[dotfiles.git] / .mc / menu
index c9e6416bded09006908b19f51587a48dce77e7ac..d2191068875771f4e66679d34d8fafbe3b54b6f3 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -10,9 +10,9 @@ shell_patterns=0
    exec $CMD %s
 
 + t t
-@  Do something on the tagged files one by one
+@  Do something on the selected files one by one
    CMD=%{Enter command}
-   for f in %t; do
+   for f in %s; do
      $CMD "$f"
    done
 
@@ -73,26 +73,18 @@ e  View djvu
 o  View OpenDoc with odt2txt
    odt2txt %f | ${PAGER:-more}
 
-+ t r & f \.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
-e  Edit OpenDoc with libreoffice
++ t r & f \.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg|doc|DOC|rtf|docx|DOCX|xls|XLS|xlsx|XLSX)$
+e  Edit (Open)Docs with libreoffice
    libreoffice %f &
 
 += t r & f \.(doc|DOC|rtf)$
 d  View doc with catdoc
    catdoc %f | ${PAGER:-more}
 
-+ t r & f \.(doc|DOC|rtf)$
-e  Edit doc with libreoffice
-   libreoffice %f &
-
 += t r & f \.(docx|DOCX)$
 d  View docx with docx2txt
    docx2txt %f - | iconv.py -f utf-8 | ${PAGER:-more}
 
-+ t r & f \.(docx|DOCX)$
-e  Edit docx with libreoffice
-   libreoffice %f &
-
 += t r & f \.(xls|XLS)$
 x  View xls with xls2csv
    xls2csv %f | ${PAGER:-more}
@@ -110,9 +102,9 @@ I  View image(s) full size
 I  Identify image
    xli -identify %f
 
-+ t r & f \.(ico|jp2|tif|TIF|tiff|TIFF)$ | t t
-= t r & f \.(ico|jp2|tif|TIF|tiff|TIFF)$
-I  View icon, JPEG-2000 or TIFF image
++ t r & f \.(ico|jp2|tif|TIF|tiff|TIFF|webp)$ | t t
+= t r & f \.(ico|jp2|tif|TIF|tiff|TIFF|webp)$
+I  View icon, JPEG-2000, TIFF, WebP image
    display %s &
 
 + t r & f \.(aac|ac3|ape|cue|dts|flac|m3u|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ | t t
@@ -319,7 +311,7 @@ y  zip the file/directory with recoded filename(s)
    exec zip.py %f.zip %f
 
 + t t
-Z  zip these files/directories
+Z  zip selected files/directories
    ZIP=%{Enter zip name}
    exec zip -r9 "$ZIP" %s