From 0e319a9607e8ef3d1162845a7cefb66d8de0f5a6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 26 Apr 2020 00:41:55 +0300 Subject: [PATCH] Feat(.mc/menu): Edit PDFs with `LibreOffice` --- .mc/menu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 & -- 2.39.2