mc (midnight commander) 4.8.30 does not respect my Regex ??
by phi from LinuxQuestions.org on (#6N5GQ)
Hi all
Anyone managed to open "libreoffice" documents, pressing enter in midnight commander (mc)?
I use MC 4.8.30 in lubuntu 24.04 LTS (Noble Numbat)
My Workaround is the following (in the extension file):
Code:[LibreOffice Calc]
Shell=.ods
Open=/usr/bin/libreoffice %f 2>/dev/null &
[LibreOffice Writer]
Shell=.odt
Open=/usr/bin/libreoffice %f 2>/dev/null &But actually I liked to use a regex. But the following does not recognize my extensions:
Code:[LibreOffice]
Regex=\.(ods|odt)$
Open=/usr/bin/libreoffice %f 2>/dev/null &Any Idea, what I was missing?
Thanks for any hint
Anyone managed to open "libreoffice" documents, pressing enter in midnight commander (mc)?
I use MC 4.8.30 in lubuntu 24.04 LTS (Noble Numbat)
My Workaround is the following (in the extension file):
Code:[LibreOffice Calc]
Shell=.ods
Open=/usr/bin/libreoffice %f 2>/dev/null &
[LibreOffice Writer]
Shell=.odt
Open=/usr/bin/libreoffice %f 2>/dev/null &But actually I liked to use a regex. But the following does not recognize my extensions:
Code:[LibreOffice]
Regex=\.(ods|odt)$
Open=/usr/bin/libreoffice %f 2>/dev/null &Any Idea, what I was missing?
Thanks for any hint