QuickOpen: Allow any order for search terms #38877
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
search
Search widget and operation issues
It could save a lot of time if the search terms in quickopen was not taken in order. I explain:
My project is like so:
If I search for
index
everything is fine, I get the expected 2index.js
files:If I search for
bar index
, also I get the rightindex.js
file:But often during my development i'm searching first by file name, and then I remember that there is not only one file named like this in my project, so I want to specify the "module" afterwards like this:
I think it would be a great idea to show the same results for
index bar
as the ones forbar index
but only if there is no better matches.Some example to illustrate with the following tree:
Search terms:
index bar
Results:
1st/
indexable/bar.js (because the order of terms matches the file path)2nd/
bar/index.js (as there is two matching terms, but in wrong order)Search terms:
indexbar
Results:
1st/
indexable/bar.jsbar/index.js is not a match cause it does not match any of the terms
The text was updated successfully, but these errors were encountered: