41 votes
 
 
COMPLETED
updated 2 years ago

This is now supported in build 2111, see

http://www.sublimetext.com/docs/2/projects.html

for details

 
0
James Brooks
I see this to be more of a plugin controlled element than native.
Translation provided by Microsoft translator:

 
+1
lashtal
In Sublime Text 1 you could exclude folders by name natively ( <mount direxclude="..."> ). Very helpful when using "Find in Project" if some folders contain like 1000s files you don't need to be searched or shown.
I think include/exclude functionality is standard across all apps supporting projects.
Translation provided by Microsoft translator:

 
0
Luis Lavena
When working on projects like Rails, you have folders that might contain images (public/system) and also compressed JS and CSS with YUI compressor (public/assets)

Been able to exclude these nested folders is helpful so when you search or you use GoTo Anything do not attempt to load a minimized version of jQuery in the preview.
Translation provided by Microsoft translator:

 
0
Ian Gustafson
+1. This is very useful when you use something like coffeescript, and want to exclude your build directory from showing up in the everything search.
Translation provided by Microsoft translator:

 
0
PiTiLeZarD
Totally need this feature ! to exclude venv from python projects, or minified version of resources like said earlier...
Translation provided by Microsoft translator:

 
+3
Ricardo Tomasi
"file_exclude_patterns" doesn't seem to respect relative paths. Say I want to hide only .js files in the root folder:
"file_exclude_patterns": ["./*.js"] // or ["/*.js"]

This causes .js files inside all subfolders to be hidden too.


Translation provided by Microsoft translator:

 
+4
Hannes Struß
It doesn't exclude the folders from find-in-files, does it?
Translation provided by Microsoft translator:

 
+3
Erik Kallevig
The "file_exclude_patterns" setting doesn't seem to be using a regex, but rather just a list of extensions to exclude -- which prevents me from excluding minified versions of files in the same directory (ie. [*.min.js]).  Wish it actually was regex so you could be more specific about what to exclude.
Translation provided by Microsoft translator:

 
+5
Kurt Werle

Seems like it should be easy to say "Ignore everything listed in .gitignore"


Right?

Translation provided by Microsoft translator:

 
0
EHLOVader

I would like to know if this could be revisited. The exclusions are nice, but what if we have a folder we want to exclude, but with exceptions?


It would be nice to integrate the .gitignore syntax for folder exclusion exceptions.


stuff like this:


"folder_exclude_patterns": ["modules/*", "!modules/core"]
Translation provided by Microsoft translator:

Community stats

  • 26,618People
  • 3,756Feedback
  • 5,607Comments
  • 63,060Votes