How can I configure Midnight Commander to execute "open %file_name%" command every time when I press Enter
Solution 1:
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 &)
Solution 2:
Improvement on UsersUser's answer: Use %s
instead of %f
to be able to open multiple files at once. Refer to the explanation inside the mc.ext config file.
Excerpt:
%s -> "selected files", i.e. space separated list of tagged files if any or name of the current file.
Ergo:
regex/\.(.*)$
Open=(open %s &)