Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Midnight Commander, is it possible to exclude some directories/patterns/... when doing search? (M-?) I'm specifically interested in skipping the .hg subdirectory.

share|improve this question
up vote 1 down vote accepted

In the "[Misc]" section of your ~/.mc/ini file, you can specify the directories you wish to skip in the "find_ignore_dirs" setting.

To specify multiple directories, use a colon (":") as the delimiter.

share|improve this answer
Thanks a lot! That seems only to work for absolute dirs, but that's still something. And your hint helped me to start further research, which seems to show that some cutting-edge versions of mc seem to have this feature boosted a bit. – akavel Apr 26 '11 at 7:48
It definitely would be nice if this could be a part of the user interface since changes to configuration files tend to be more permanent. Thanks for the update! – Randolf Richardson Apr 26 '11 at 14:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.