How to exclude some pattern when doing a search in MC?

5

1

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

akavel

Posted 2011-04-07T13:32:58.987

Reputation: 696

Answers

5

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.

Randolf Richardson

Posted 2011-04-07T13:32:58.987

Reputation: 14 002

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 – 2011-04-26T07:48:47.350

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 – 2011-04-26T14:25:01.970