Ignore list of directories when performing Alt-F7 searches

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Polarbear
Junior Member
Junior Member
Posts: 2
Joined: 2018-02-13, 15:41 UTC

Ignore list of directories when performing Alt-F7 searches

Post by *Polarbear »

My searches for files are often slow because because searched folders contains folders with large amounts of files that I generally do not want to search.

Examples of folders that I almost always want to ignore in searches (being a :NET developer):

.git - Git repository folder
node_modules - Downloaded node packages
packages - Downloaded .NET packages

I would like to see the addition of an exclude folders field to the Alt-F7 dialog, similar to "Find text" field (checkbox in front and with history).
Field should accept input like:

.git;node_modules;packages
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

From the Help:
All masks after the pipe character | will be treated as exclude masks.

To include/exclude certain directories in the search, wildcards can be used in include/exclude directory names, and the names must have a trailing backslash \

Examples:

*.htm? | _vti*\ finds all html files, except in subdirs starting with _vti
is that to any avail?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Polarbear
Junior Member
Junior Member
Posts: 2
Joined: 2018-02-13, 15:41 UTC

Post by *Polarbear »

Thanks, I was not aware of that operator (The pipe character), and it lets me do the searches much faster.

Example:
*.csproj | node_modules\ .*\ packages\ obj\ Deploy\

I'm not a fan of this syntax (too much information crammed into one input field) but I guess it will do the job.
petermad wrote:From the Help:
All masks after the pipe character | will be treated as exclude masks.

To include/exclude certain directories in the search, wildcards can be used in include/exclude directory names, and the names must have a trailing backslash \

Examples:

*.htm? | _vti*\ finds all html files, except in subdirs starting with _vti
is that to any avail?
Post Reply