This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ignore list of directories when performing Alt-F7 searches

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) Printable version
View previous topic :: View next topic  
Author Message
Polarbear
Junior Member
Junior Member


Joined: 13 Feb 2018
Posts: 2

PostPosted: Tue Feb 13, 2018 10:36 am    Post subject: Ignore list of directories when performing Alt-F7 searches Reply with quote

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
Back to top
View user's profile Send private message
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 7658
Location: Valsted, Denmark

PostPosted: Wed Feb 14, 2018 3:35 am    Post subject: Reply with quote

From the Help:
Quote:
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?
_________________
#524
Danish Total Commander Translator
TC 9.12 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.91b2 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Polarbear
Junior Member
Junior Member


Joined: 13 Feb 2018
Posts: 2

PostPosted: Wed Feb 14, 2018 6:12 am    Post subject: Reply with quote

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:
Quote:
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?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group