]> git.phdru.name Git - dotfiles.git/blobdiff - .mc/menu
.mc: view docx with docx2txt, edit with libreoffice
[dotfiles.git] / .mc / menu
index 76b371830cda19a8e70a15c1f1c8705a565d0113..7a303a7379f0785462c429d97b0c5387df39ffaf 100644 (file)
--- 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,9 +73,17 @@ 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}
+   docx2txt %f - | iconv -f utf-8 | ${PAGER:-more}
+
++ t r & f \.(docx|DOCX)$
+e  Edit docx with libreoffice
+   libreoffice %f &
 
 += t r & f \.(xls|XLS)$
 x  View xls with xls2csv