From 54ae58d0e2b74f337ddf10805aff6de07bd5e798 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 12 Nov 2014 15:36:06 +0300 Subject: [PATCH 1/1] .mc: edit docs with libreoffice --- .mc/mc.ext | 2 ++ .mc/menu | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/.mc/mc.ext b/.mc/mc.ext index 7e46706..e2d36e3 100644 --- a/.mc/mc.ext +++ b/.mc/mc.ext @@ -525,6 +525,7 @@ shell/.sdw # StarOffice 6 and OpenOffice.org formats regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$ + Edit=(libreoffice %f &) Open=(libreoffice %f &) View=%view{ascii} odt2txt %f @@ -765,6 +766,7 @@ include/audio View=%view{ascii} %f include/msoffice + Edit=libreoffice %f & Open=libreoffice %f & View=%view{ascii} catdoc %f diff --git a/.mc/menu b/.mc/menu index 76b3718..730357a 100644 --- a/.mc/menu +++ b/.mc/menu @@ -61,6 +61,10 @@ T fb2txt 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 + libreoffice %f & + += t r & f \.(pdf|PDF|djvu)(\.bz2|\.gz)?$ e View pdf/djvu with evince evince %f & @@ -69,6 +73,10 @@ e View pdf/djvu with evince 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 - | ${PAGER:-more} -- 2.39.2