You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root cause of this is that fzy adds varying bonuses to letters at the beginning of words. However, the word boundary is not your typical regex \b. It's only that matching characters following the these characters get (varying) bonuses:
/ \ - _ .
So all of "test" is only a single word, and the t has no bonus to match the first t (which is the second character in the "word") versus the last.
I'm pondering making the word boundary a bit more rigorous. Maybe a character following any character in the usual non-word \W character class gets a "start of word" bonus? For example abc would match ant!bat!cat before azzzbzzzczz.
This would certainly be different than the original fzy, and will definitely change observable behavior for many searches. I'm trying to brainstorm and see if any of those changes would be surprising and therefore bad.
I get the following scoring
where the first one is unexplainable to me
The text was updated successfully, but these errors were encountered: