inbox/list: Fuzzy search on additional fields

This commit is contained in:
Erik Kundt
2025-12-22 14:20:47 +01:00
parent 9a3f84fedf
commit b423dcd66c
+15 -2
View File
@@ -503,8 +503,21 @@ pub mod filter {
refname.clone().unwrap_or_default()
}
};
match matcher.fuzzy_match(&summary, search) {
Some(score) => score == 0 || score > 60,
match matcher.fuzzy_match(
&format!(
"{} {} {}",
summary,
notif.kind,
&notif
.author
.alias
.as_ref()
.map(|a| a.to_string())
.unwrap_or_default()
),
search,
) {
Some(score) => score == 0 || score > filter::FUZZY_MIN_SCORE,
_ => false,
}
}