jjw24 / Wox

Launcher for Windows, an alternative to Alfred and Launchy.
http://wox.one
MIT License
154 stars 12 forks source link

Fuzzy Search scoring- sub-string scoring for less characters #163

Closed jjw24 closed 4 years ago

jjw24 commented 4 years ago

This current method of scoring is just a little funky for users who dont understand the intention behind it. if (allSubstringsContainedInCompareString) { int count = query.Count(c => !char.IsWhiteSpace(c)); int factor = count < 4 ? 10 : 5; score += factor * count; }

if you search code for Visual Studio Code, you get nothing. But searching cod you get Visual Studio Code because more weight is given to number of characters matched is less than 4. @theClueless should this be removed?

jjw24 commented 4 years ago

Brief discussion of the above logic here https://github.com/jjw24/Wox/pull/112