Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
inbox/list: Fuzzy search on additional fields
✗ CI failure Erik Kundt committed 4 months ago
commit b423dcd66c802bc582c757f0a6c3f5f483a3f5b6
parent 9a3f84fedf72d709c08f7a2e4a66152457392571
1 failed (1 total) View logs
1 file changed +15 -2
modified bin/ui/items/notification.rs
@@ -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,
                    }
                }