From: Oleg Broytman Date: Sat, 25 Apr 2020 21:41:55 +0000 (+0300) Subject: Feat(.mc/menu): Edit PDFs with `LibreOffice` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=0e319a9607e8ef3d1162845a7cefb66d8de0f5a6;p=dotfiles.git Feat(.mc/menu): Edit PDFs with `LibreOffice` --- diff --git a/.mc/menu b/.mc/menu index a983ae6..cec6128 100644 --- a/.mc/menu +++ b/.mc/menu @@ -62,7 +62,7 @@ T fb2txt $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl - | webstdin -e txt -t += t lr & f \.(pdf|PDF|ps|PS)(\.bz2|\.gz)?$ -e View pdf/ps +e View pdf/ps with qpdfview qpdfview "`echo \"%f\" | sed 's/\\\\//g' | iconv -t utf-8`" & += t lr & f \.djvu(\.bz2|\.gz)?$ @@ -73,7 +73,7 @@ e View djvu o View OpenDoc with odt2txt odt2txt %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|doc|DOC|rtf|docx|DOCX|xls|XLS|xlsx|XLSX)$ ++ 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 &