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?

  • Did you try adding those folders to your User settings instead of just your project settings? – d_rail May 17 '13 at 20:41
14
+200

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

| improve this answer | |
  • 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 Jun 1 '13 at 7:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.