sayanarijit / xplr

A hackable, minimal, fast TUI file explorer
https://xplr.dev
MIT License
4.06k stars 75 forks source link

Incorrect fuzzy search behavior #678

Open ElSamhaa opened 7 months ago

ElSamhaa commented 7 months ago

When in search mode, and assuming a list of subdirectories/files named ts and tst in the current CWD; when typing ts, xplr will focus tst before ts, despite ts being a closer match.

sayanarijit commented 6 months ago

Xplr uses skim internally. The skim algorithm seems to do ranking this way when run from command line.

ElSamhaa commented 6 months ago

@sayanarijit Is it possible to allow specifying a custom fuzzy search command, e.g fzf or sk --tiebreak length?

sayanarijit commented 6 months ago

Should be possible.

ElSamhaa commented 1 month ago

https://github.com/lotabout/skim/issues/568