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() };