Article 6N5GQ mc (midnight commander) 4.8.30 does not respect my Regex ??

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
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments