]> git.phdru.name Git - dotfiles.git/blobdiff - .mc/menu
.mc: view docx with docx2txt, edit with libreoffice
[dotfiles.git] / .mc / menu
index 730357a2aa3ec095ebc9a881749d902607e468d6..7a303a7379f0785462c429d97b0c5387df39ffaf 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -79,7 +79,11 @@ e  Edit doc with libreoffice
 
 += 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