Sublime Forum

Search scope is not right

#1

When I search a word in my sublime project (which is very big), I found it will search files in the excluded folders.
Below is my project file:

{
“folders”:
[
{
“folder_exclude_patterns”:
[
“bin”,
“obj”,
“Built”,
“Built-Projects”,
“Imports”,
“Debug”,
“Release”,
“Samples”,
“GenSource”
],
“path”: “.”
}
]
}

Only when I exclude those folders in sublime user settings, sublime won’t search files under those folders.
I think this is not right thing.

0 Likes

#2

If you use “Find in FIles” on a folder in your project, Sublime will still search excluded sub-folders. However, if you enter <project> in the “Where” field, it won’t search in the folders you’ve excluded in your project.

2 Likes

#3

I got it. Thanks.
But I still think that even if I search one of my project folders, excluded paths of that folder should be considered.

See the example:
My project has 4 folders: [Main, test_script, nvwinsys, Battle_Tests].
Almost all the time I only need search the “Main” folder.
But to do this, I have to fill the below in “where”:
<project>,-./test_script,-./nvwinsys,-./Battle_Tests,.cpp,.h,.inc,-.pb.h

If I could do just this, that’s wonderful:
./Main,.cpp,.h,.inc,-.pb.h

0 Likes