13

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?

1
  • Did you try adding those folders to your User settings instead of just your project settings?
    – d_rail
    Commented May 17, 2013 at 20:41

1 Answer 1

14
+200

You should try to use <project> or <open folders> instead of dot (.) in Where: field.

1
  • 1
    Thank you so much for this answer, I've asked everywhere but it seems not many people know this. It changed a lot the way I work with ST2 - now instead of waiting 1 minute for the search to complete and get a bunch of unrelated results, it takes 2 seconds with proper results (using <project>). I will award the bounty tomorrow when the system allows me to do so. Thanks again for this!
    – laurent
    Commented Jun 1, 2013 at 7:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .