X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.mc%2Fmenu;h=d2191068875771f4e66679d34d8fafbe3b54b6f3;hp=c30570e1b6fbcf27e0323ebadfede29128eba512;hb=87a7e52a49c6171d9b0de67e07778b3009d17a99;hpb=4ffc7928a0372a407f018792a187966e84c26e1d diff --git a/.mc/menu b/.mc/menu index c30570e..d219106 100644 --- 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 @@ -20,6 +20,10 @@ shell_patterns=0 p View the file in a pager exec ${PAGER:-more} %f ++ t r +g Edit the file in gvim + gvim %f & + + t r b View the file in a browser exec webbrowser file://%d/%f @@ -57,34 +61,30 @@ T fb2txt esac $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl - | webstdin -e txt -t -+= t r & f \.(pdf|PDF|ps|PS|djvu)(\.bz2|\.gz)?$ -e View pdf/ps/djvu ++= t r & f \.(pdf|PDF|ps|PS)(\.bz2|\.gz)?$ +e View pdf/ps qpdfview %f & ++= t r & f \.djvu(\.bz2|\.gz)?$ +e View djvu + djview %f & + += t r & f \.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$ 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} @@ -98,9 +98,13 @@ i View image(s) scaled I View image(s) full size xli -title "`echo %s | sed 's/ /_/g'`" %s & -+ 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 \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$ +I Identify image + xli -identify %f + ++ 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 @@ -307,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