Open wiiznokes opened 4 weeks ago
Yes, I think i understand why this is the case. The old impl use
let append = search_interest.starts_with(&*query)
|| query
.split_ascii_whitespace()
.any(|query| search_interest.contains(&*query))
|| strsim::jaro_winkler(&*query, &*search_interest) > 0.6;
for matching while the new only use strsim::jaro_winkler(&*query, &*search_interest)
(in fde).
Having both
search_interest.starts_with(&*query)
|| query
.split_ascii_whitespace()
.any(|query| search_interest.contains(&*query))
seems redundant. I will add the contains
condition and update you
No rush, but just to make sure this isn't waiting on us again, I assume something will need to be done in this PR to bring https://github.com/pop-os/freedesktop-desktop-entry/pull/23 in? Not sure if the freedesktop-desktop-entry
version needs to be bumped, but we at least need a new git commit hash to trigger a rebuild.
I assume fde needs a new version
@mmstick Can you make a crate release including https://github.com/pop-os/freedesktop-desktop-entry/pull/23 so we can bump the version used in this PR to fix that regression?
Sure
Released as 0.6.2
I plan to start playing with the score now, for modifying to order of the result. I don't include it in this PR to keep things separate, but since the new matching function will match more things, currently, the search result are not as good as previously.see #217