From 3f349301bf666e49eb475d6f78c886ba8edcd9bd Mon Sep 17 00:00:00 2001 From: Kirottu Date: Thu, 5 Jan 2023 10:19:54 +0200 Subject: [PATCH] Pick the highest rating from matching with the app name and exec in the applications plugin --- plugins/applications/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/applications/src/lib.rs b/plugins/applications/src/lib.rs index b69864d..01d3bee 100644 --- a/plugins/applications/src/lib.rs +++ b/plugins/applications/src/lib.rs @@ -37,6 +37,7 @@ pub fn get_matches(input: RString, entries: &mut Vec<(DesktopEntry, u64)>) -> RV .filter_map(|(entry, id)| { matcher .fuzzy_match(&entry.name, &input) + .max(matcher.fuzzy_match(&entry.exec, &input)) .map(|val| (entry, id, val)) }) .collect::>();