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
Support filtering search by folder with './' syntax #18334
'files to include' maps the input 'foo' to globs like foo/**, **/foo, so it includes anything under the folder foo, or files named foo anywhere in the workspace. It would be helpful to have syntax like ./foo to limit this to folders from the root, especially for 'Find in folder' from the explorer. Related to #18123.
Multiple folders like - ./foo, ./bar - just search in the last one, since I don't want to deal with spawning multiple ripgrep processes and merging results right now.
A pattern like ./foo/bar/**/*.js - convert to ./foo/bar, **/*.js, somehow. Or, ignore it, and anything else that doesn't look exactly like a relative path to a folder in the workspace.
Marking as verified as find in folders works. But I filed some issues and I'm still confused on how './' is supposed to work. To search in the root, isn't the typical syntax to start with '/' (/foo searches in files and folders foo that are in the root)
Activity
roblourens commentedon Apr 5, 2017
./foo, ./bar- just search in the last one, since I don't want to deal with spawning multiple ripgrep processes and merging results right now../foo/bar/**/*.js- convert to./foo/bar, **/*.js, somehow. Or, ignore it, and anything else that doesn't look exactly like a relative path to a folder in the workspace.roblourens commentedon Apr 5, 2017
Actually, ripgrep has no problem searching multiple folders, or searching patterns like
./foo/**/*.js.roblourens commentedon Apr 5, 2017
Except on Windows 😛 BurntSushi/ripgrep#234
Use './' syntax for "Find in files", #18334
aeschli commentedon Apr 27, 2017
Marking as verified as find in folders works. But I filed some issues and I'm still confused on how './' is supposed to work. To search in the root, isn't the typical syntax to start with '/' (
/foosearches in files and folders foo that are in the root)Fix microsoft#18334 - implement ./ filtering