diff --git a/src/main.rs b/src/main.rs index 8ef8ca4..ba6db0d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1352,17 +1352,9 @@ fn handle_key(app: &mut App, code: KeyCode) { } } KeyCode::Char('/') => { - let scope = match app.current_view() { - View::Categories => SearchScope::All, - View::Library { title, query, .. } => SearchScope::Library { - title: title.clone(), - query: query.clone(), - }, - _ => SearchScope::All, - }; - + // Always behave like home-page search (global), regardless of current view. app.search = Some(SearchState { - scope, + scope: SearchScope::All, mode: SearchMode::All, input: String::new(), });