From 65ea688a496a538b221e2399dbe82a97a2b64cae Mon Sep 17 00:00:00 2001 From: cwj3rcb Date: Sat, 14 Feb 2026 01:56:12 -0600 Subject: [PATCH] search within libraries work --- src/main.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 83a2c42..2ca06d2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -569,7 +569,16 @@ fn ui(frame: &mut Frame, app: &App) { // Bottom Left 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 { app.status.clone() };