-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Expected Behavior
I think the current code for the filter needs some improvements.
The current filter splits the filter query and adds wildcards between each character. Which leads to some weird items not being filtered out because they "accidentally" have those characters (in that order) somewhere in their text.
I would expect a better "fuzzy" search like in the previous version of the command palette.
For example, search for "scen"
Returns:
- "GET /scenarios {{ _.ServiceBaseUrl }}/scenarios"
Actual Behavior
WIth the current filter, the search for "scen"
Returns:
- "GET /scenarios {{ _.ServiceBaseUrl }}/scenarios"
- "GET /changes {{ _.ServiceBaseUrl }}/changes"
Is there an existing issue for this?
- I have searched the issue tracker for this problem.
Additional Information
The previous "request-switcher" used the fuzzyMatchAll util function. As this function still exists it might be an easy change again use this way of filtering.
I think people are used to this way of (fuzzy) searching because it is also used like this in the workspace search filter and the workspace requests search functionality.
Because at this point the requests search filter returns other results (but more accurate) then the same search via the command palette. Same for the workspaces.
Insomnia Version
8.6.0
What operating system are you using?
macOS
Operating System Version
13.6 (22G120)
Installation method
download from website