You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Search: using "files to include" does not speed up search #18123
The thing is that if you set 'files to include' to foo/bar, it doesn't just search /foo/bar from the root, it searches for any .../foo/bar subtree in the workspace. It actually translates this to [foo/bar/**, **/foo/bar] and searches the whole tree for any matching path. So we would have to change the way that field works. Is there actually a way to do this that I'm missing, Christof Marti (@chrmarti) or Sandeep Somavarapu (@sandy081)?
I think this could be misleading at least for the case of right-clicking in the file explorer and selecting 'find in folder', because it will... find in other folders too.
In Sublime I can use ./foo/bar to search only in that folder relative to the open folder.
Activity
roblourens commentedon Jan 6, 2017
The thing is that if you set 'files to include' to
foo/bar, it doesn't just search/foo/barfrom the root, it searches for any.../foo/barsubtree in the workspace. It actually translates this to[foo/bar/**, **/foo/bar]and searches the whole tree for any matching path. So we would have to change the way that field works. Is there actually a way to do this that I'm missing, Christof Marti (@chrmarti) or Sandeep Somavarapu (@sandy081)?I think this could be misleading at least for the case of right-clicking in the file explorer and selecting 'find in folder', because it will... find in other folders too.
In Sublime I can use
./foo/barto search only in that folder relative to the open folder.roblourens commentedon Apr 19, 2017
Search is now provided by ripgrep which is faster and smarter about applying these patterns. And #18334 will help.