Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to ignore spaces? #17

Open
khughitt opened this issue Jul 31, 2020 · 0 comments
Open

Add option to ignore spaces? #17

khughitt opened this issue Jul 31, 2020 · 0 comments

Comments

@khughitt
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant