Skip to content

Command palette search not working the same as other searches #7009

@JeroenVdb

Description

@JeroenVdb

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?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-bugBug: general classificationS-unverifiedStatus: Unverified by maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions