From: Oleg Broytman Date: Fri, 5 Jun 2020 13:49:36 +0000 (+0300) Subject: Refactor(.mc/menu): Reorder menu items X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=4cb17a2a1e2af89e1d1c2a3150ee5e091fcee06c Refactor(.mc/menu): Reorder menu items --- diff --git a/.mc/menu b/.mc/menu index c2172ca..d337562 100644 --- a/.mc/menu +++ b/.mc/menu @@ -69,26 +69,27 @@ e View pdf e View djvu djview %f & -+= t lr & 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 lr & f \.((pdf|PDF|ps|PS)(\.bz2|\.gz)?|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 lr & 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)$ +v View (Open)Docs with libreoffice + #libreoffice --headless --convert-to "txt:Text (encoded):UTF8" %f + libreoffice --cat %f | ${PAGER:-more} + += t lr & f \.(doc|DOC|rtf)$ d View doc with catdoc catdoc %f | ${PAGER:-more} ++= t lr & 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 lr & f \.(docx|DOCX)$ d View docx with docx2txt docx2txt %f - | iconv.py -f utf-8 | ${PAGER:-more} -+ t lr & 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)$ -v View (Open)Docs with libreoffice - #libreoffice --headless --convert-to "txt:Text (encoded):UTF8" %f - libreoffice --cat %f | ${PAGER:-more} += t lr & f \.(xls|XLS)$ x View xls with xls2csv