]> git.phdru.name Git - dotfiles.git/commitdiff
.mc/menu: Merge libreoffice menu items into one
authorOleg Broytman <phd@phdru.name>
Tue, 12 Feb 2019 11:26:25 +0000 (14:26 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 12 Feb 2019 11:26:25 +0000 (14:26 +0300)
.mc/menu

index c9e6416bded09006908b19f51587a48dce77e7ac..1892b3317f66fef61ea3ad01b961745c69c37d61 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -73,26 +73,18 @@ e  View djvu
 o  View OpenDoc with odt2txt
    odt2txt %f | ${PAGER:-more}
 
 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
++ t r & 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)$
+e  Edit (Open)Docs with libreoffice
    libreoffice %f &
 
 += t r & f \.(doc|DOC|rtf)$
 d  View doc with catdoc
    catdoc %f | ${PAGER:-more}
 
    libreoffice %f &
 
 += t r & f \.(doc|DOC|rtf)$
 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 - | iconv.py -f utf-8 | ${PAGER:-more}
 
 += t r & f \.(docx|DOCX)$
 d  View docx with docx2txt
    docx2txt %f - | iconv.py -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
    xls2csv %f | ${PAGER:-more}
 += t r & f \.(xls|XLS)$
 x  View xls with xls2csv
    xls2csv %f | ${PAGER:-more}