search within libraries work

This commit is contained in:
2026-02-14 01:56:12 -06:00
parent 235b02246d
commit 65ea688a49

View File

@@ -569,7 +569,16 @@ fn ui(frame: &mut Frame, app: &App) {
// Bottom Left // Bottom Left
let status_text = if let Some(s) = &app.search { let status_text = if let Some(s) = &app.search {
format!("/{}", s.input) let scope = match &s.scope {
SearchScope::All => "All".to_string(),
SearchScope::Library { title, .. } => title.clone(),
};
if s.input.is_empty() {
format!("/ ({scope})")
} else {
format!("/ ({scope}) {}", s.input)
}
} else { } else {
app.status.clone() app.status.clone()
}; };