Home Download Buy Blog Forum Support

how use index_exclude_patterns in Dev Build 3058

how use index_exclude_patterns in Dev Build 3058

Postby daejin on Fri Dec 13, 2013 1:57 pm

'Added index_exclude_patterns setting to control which files get indexed' in Build 3058
how use?
daejin
 
Posts: 6
Joined: Sat Feb 16, 2013 1:49 am

Re: how use index_exclude_patterns in Dev Build 3058

Postby jbrooksuk on Fri Dec 13, 2013 2:14 pm

I assume it's just:

Code: Select all
"index_exclude_patterns": ["*.sql", "*.log"]


It may be different though.
jbrooksuk
 
Posts: 688
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: how use index_exclude_patterns in Dev Build 3058

Postby roycyt on Fri Dec 13, 2013 3:07 pm

Actually, I would like to know what are the implicit rules that determine what files would be indexing by default.
It seems that this part is undocumented.
roycyt
 
Posts: 1
Joined: Sun Mar 17, 2013 2:37 pm

Re: how use index_exclude_patterns in Dev Build 3058

Postby jbrooksuk on Sat Dec 14, 2013 9:54 am

Anything under 4GB gets indexed, I'm sure I read that somewhere. I don't think images, archives or executables get indexed either.
jbrooksuk
 
Posts: 688
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: how use index_exclude_patterns in Dev Build 3058

Postby jps on Sun Dec 15, 2013 11:25 pm

By default, every non-binary file (as identified by binary_file_patterns) in the project under 4MB will be indexed.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: how use index_exclude_patterns in Dev Build 3058

Postby layne on Wed Dec 18, 2013 4:18 pm

Would be nice to update the documentation:

Nice feature, but wasted if no one knows how to use it.
// my Blog //
layne
 
Posts: 39
Joined: Tue Jan 04, 2011 3:00 pm
Location: NRW // GER

Re: how use index_exclude_patterns in Dev Build 3058

Postby jbrooksuk on Wed Dec 18, 2013 4:18 pm

layne wrote:Nice feature, but wasted if no one knows how to use it.

I expect this is the same for a lot of hidden settings.
jbrooksuk
 
Posts: 688
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: how use index_exclude_patterns in Dev Build 3058

Postby tolmark12 on Sat Dec 21, 2013 12:29 am

Is there a way to exclude the contents of folders from being indexed? Something like

Code: Select all
"index_folder_exclude_patterns": ["tmp", "server"]
tolmark12
 
Posts: 5
Joined: Tue Aug 28, 2012 12:48 am

Re: how use index_exclude_patterns in Dev Build 3058

Postby psyrendust on Sun Dec 22, 2013 2:24 am

tolmark12 wrote:Is there a way to exclude the contents of folders from being indexed? Something like

Code: Select all
"index_folder_exclude_patterns": ["tmp", "server"]


+1 for this. I've been hoping for something like this to be able to exclude a "node_modules" folder from search in a project, while still including it in the side panel for manual browsing. This would be a great addition.

I was hoping that something like the following would work when doing a search within a project, but it doesn't.
Code: Select all
"index_exclude_patterns": ["node_modules/*"]
[/quote]

Right now I have to manually add in a custom pattern in "where" when doing a "Find in Files...".

Code: Select all
*.hbs, *.scss, *.less, *.html, *.cshtml, *.js, *.json, -node_modules


Another thing that would be great would be to add in an inverse command for indexing only certain types of files, while being able to keep file patterns not included in your project.
Code: Select all
"index_include_patterns": ["*.hbs", "*.scss", "*.less", "*.html", "*.cshtml", "*.js", "*.json"]
psyrendust
 
Posts: 2
Joined: Sun Nov 17, 2013 8:01 am

Re: how use index_exclude_patterns in Dev Build 3058

Postby mgcrea on Wed Mar 26, 2014 10:17 am

This is causing a bad bug when opening large projects or any heavy-populated node_modules folder (encounters "number of files to index exceeds sanity limit, bailing out") that makes ST3 unusable with indexing turned on.

To me, "node_modules" or "bower_components" should be disabled from indexing by default.
mgcrea
 
Posts: 2
Joined: Wed Mar 26, 2014 10:12 am


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 24 guests