How to prevent ST2 from searching in excluded folders?
I've got a sublime-project like this:
{
"folders":
[
{
"path": ".",
"folder_exclude_patterns": ["_doc", "cache", "logs", "_release"],
"file_exclude_patterns": ["*.sublime-workspace"]
}
]
}
In particular I'm excluding _doc
, _release
, etc. from the project. They seem to be excluded fine since they don't show up in the side bar. However, when I do a search, ST also searches in these folders and returns all kind of unrelated results.
For instance, if I do this search:
I get results such as this, even though the file is in the _doc folder, which has been excluded:
Any idea how to avoid this?
Solution 1:
You should try to use <project>
or <open folders>
instead of dot (.
) in Where: field.