1

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?

  • Well, you´ve asked and I answered - no reply is rude. If my answer fits please accept the answer below or give me more details. – UsersUser Nov 13 '14 at 9:03
4

You could edit the extension file (Menu/Command/Edit extension file). I couldn´t test it on OSX but

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

should works.

0

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 &)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .