-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
picker score should take all words into account #7645
Comments
Like in other fuzzy matchers (fzf, skim) helix treat words sperate by a space as and so |
Ah I missunderstood then. Each word gets its own fuzzy match score and we simply sort by the first one. I think we can probably improve on that by summing scores. The current behavior matches skim but fzf does seem to do better here |
Summary
this is the result of using space-f and searching for

panic attr
in the rust source tree:note that it finds the whole word
panic
, but then the characters ofattr
are scattered across the results even though a file namedtests/ui/test-attrs/test-should-panic-attr.rs
exists - i would expect this to be the first result, but it is not even visible on the first page of results. this issue regularly makes finding files in larger repos difficult for me, because i don't even know what i could search for to give me the result i want.i also filed this as an issue on the skim repo (skim-rs/skim#526) but skim seems largely unmaintained these days, and i don't even use skim the binary, just the library implementation via helix, so it seemed worth bringing up here too.
Reproduction Steps
(see summary)
Helix log
~/.cache/helix/helix.log
Platform
linux
Terminal Emulator
alacritty 0.12.2
Helix Version
helix 23.05
The text was updated successfully, but these errors were encountered: