From 57dbcbc3303a53167e8c9cf8eb9524a4687b633a Mon Sep 17 00:00:00 2001 From: cwj3rcb Date: Mon, 16 Feb 2026 19:14:22 -0600 Subject: [PATCH] Changed search function to always act as home --- src/main.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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(), });