+8
Completed

Ignore file types and directories in project when using "Goto Anything"

Iain McGinniss 14 years ago updated by Jon Skinner 12 years ago 3
When working with my Scala projects, I would like the "target" folder, where all the outputs of a build go, so that files in that folder do not appear when I use the "Goto Anything" feature (CTRL+P). Or, at the very least, have them visibly deprioritised in the search results.

It would also be good to be able to do this with certain patterns of files, such as *.class files. A generalised regular expression based approach like that employed by Mercurial in it's .hgignore file would perhaps be a good all-round solution.

Answer

Answer
Completed
You can use the file_exclude_patterns global preference for this
Answer
Completed
You can use the file_exclude_patterns global preference for this
+1
In the case of the "target" folder though, this is not necessarily something I would like to set as a global preference, but something attached to the particular project I'm working on. Anyway, adding it to the global preferences isn't going to cause many problems for me personally so I'll go with this for now.
+1

The documentation here includes examples of how to use file_exclude_patterns and as part of your project settings (and folder_exclude_patterns can work the same way): http://www.sublimetext.com/docs/2/projects.html