From: Oleg Broytman Date: Fri, 29 Nov 2019 10:20:55 +0000 (+0300) Subject: .mc/menu: View (Open)Docs with `libreoffice --cat` X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=ac5097db0a42a03653e905e89d0df0991e0d1b28 .mc/menu: View (Open)Docs with `libreoffice --cat` --- diff --git a/.mc/menu b/.mc/menu index a63f044..7acb982 100644 --- a/.mc/menu +++ b/.mc/menu @@ -85,6 +85,11 @@ d View doc with catdoc d View docx with docx2txt docx2txt %f - | iconv.py -f utf-8 | ${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|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 r & f \.(xls|XLS)$ x View xls with xls2csv xls2csv %f | ${PAGER:-more}