Skip to content

Add option to ignore spaces? #17

@khughitt

Description

@khughitt

Would it be difficult to add an option to have fuzzy.Find() ignore spaces?

This would be nice to normalize the behavior with fzf.

For example, if I am searching through a bunch of filepaths, I will sometimes type part of one directory name, , and then a part of some other directory name or the filename.

In this sense, you are sort of passing in fragments to be matched, and the spaces are just being used to separate the fragments.

I saw that there was another similar issue requesting support to allow the order to be ignored, which is indeed how fzf operates, but even if the method still expects search phrases to be provided order, this would still be useful, imo.

Thanks for taking the time to put this library together and share it with the community! It works really well overall and was quite simple to pick up and use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions