Support Multiple Search Terms in Workspace Explorer
Searching in Visual Studio allows me to set multiple search terms separated by a space in order to better narrow my results. This is helpful if you aren't sure if the name of the file is "ProjectXMLData" or "ProjectDataXML", but you know for sure it has Project and XML in the name.
Attached Images
- VSSearch01 - Shows searching for all 'project'
- VSSearch02 - Shows adding 'xml', but not as an exact match. The results are still displayed as expected
- WSSearch01 - Shows searching for 'project' and results show as expected
- WSSearch02 - Shows adding 'xml', but no results are returned
-
Md commented
@Héber,
I think a related feature missing is for the search to apply on the full path not only the filename.
For instance if I am looking for file relate to "Texture" in the context of "Editor", I expect the filename contains "texture" and is included in folder with a name containing "editor".
So by typing "Editor Texture" in the search bar I wish it return all the file where the full path contains "Editor" and "Texture".
(those kind of search file features are very common in Text Editor like Sublime Text, Visual Studio, Visual Studio Code, ...)
-
Héber commented
Hi Joshua,
I've been checking with the team. I'm not sure if you know you can use wildcards in the search. You can type bug*core* and it will find any file that matches the pattern.
That being said, we plan to add an indexing system, that will index both data and metadata. I'm not sure yet, but probably it will be able to find what you are looking for.
Right now all we do is to walk the file tree and run a search on every file, so to implement what you are asking for we should probably apply some sort of matching, running on each name for every word and only returning true if all the words match. Doable, but then it would be hard to explain the current mechanism. We are a little bit lost about this. Probably the multi-word search is more powerful than the wild cards, but we are not sure.
Best regards,
Héber.