MacOS – How to configure Midnight Commander to execute “open %file_name%” command every time when I press Enter

macos

Can I somehow configure Midnight Commander to execute "open %file_name%" command every time when I press Enter? If so, how can I do it?

Best Answer

You could edit the extension file (Menu → Command → Edit extension file). I couldn´t test it on OSX but this should work:

regex/\.(.*)$
    Open=(open %f &)