xplr icon indicating copy to clipboard operation
xplr copied to clipboard

[Discussion] Implement SearchFuzzy to replace filtered search

Open sayanarijit opened this issue 2 years ago • 2 comments

Filtered search works well for basic use cases, but there's no way to sort the results based on how close they are to the search input. Adding the functionality will add some complexity and a Rust dependency. It also needs to play nice with the filters and sorters.

It's possible to integrate xplr with tools like fzf to work around the limitation.

However, since xplr claims to be intuitive, should it default to the more intuitive fuzzy search? Or should it just stay stupid, simple and depend on external tools for the complex stuff, like it already does?

sayanarijit avatar Jul 07 '22 17:07 sayanarijit

+1 for first option: adding fuzzy search.

roland-5 avatar Jul 30 '22 14:07 roland-5

+1 for first option: adding fuzzy search.

+1

Creator54 avatar Jul 31 '22 08:07 Creator54

I came up with this implementation: https://github.com/sayanarijit/xplr/pull/511

Looking for review/feedback.

sayanarijit avatar Sep 25 '22 07:09 sayanarijit