X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.mc%2Fmenu;h=1892b3317f66fef61ea3ad01b961745c69c37d61;hb=3cff59920f9af586aea0fe9f9037168e38f2aaa2;hp=9b3763aa3232aec716e5d6b0c18681c7cd3f5c4e;hpb=86625d7bcfe029fb0ca09ff10a73183cd9915b9f;p=dotfiles.git diff --git a/.mc/menu b/.mc/menu index 9b3763a..1892b33 100644 --- a/.mc/menu +++ b/.mc/menu @@ -21,7 +21,7 @@ p View the file in a pager exec ${PAGER:-more} %f + t r -e Edit the file in gvim +g Edit the file in gvim gvim %f & + t r @@ -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} @@ -106,6 +98,10 @@ i View image(s) scaled I View image(s) full size xli -title "`echo %s | sed 's/ /_/g'`" %s & ++ 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)$ | t t = t r & f \.(ico|jp2|tif|TIF|tiff|TIFF)$ I View icon, JPEG-2000 or TIFF image