regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
Include=msoffice
+regex/\.([Dd][oO][cC][Xx])$
+ Edit=libreoffice %f &
+ Open=libreoffice %f &
+ View=%view{ascii} docx2txt %f - | iconv -f utf-8
+
type/^Microsoft\ Word
Include=msoffice
+= 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