From b25bf2d16acbd46c3865951a84898ed38c9bab04 Mon Sep 17 00:00:00 2001 From: "n loewen (aider)" Date: Sun, 8 Jun 2025 10:13:17 +0100 Subject: [PATCH] feat: Modify Escape key behavior to clear search results instead of exiting --- gtm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtm b/gtm index e77cdb3..f37cc1e 100755 --- a/gtm +++ b/gtm @@ -1347,8 +1347,8 @@ def handle_keyboard_input(key, state: AppState) -> AppState: return replace(state, show_help=False) elif state.is_selecting: return replace(state, is_selecting=False, selection_start_coord=None, selection_end_coord=None) - else: - return replace(state, should_exit=True) + elif state.search_matches: # Clear active search results + return replace(state, search_matches=[], current_match_idx=-1) elif key == ord('?'): # Toggle help popup return replace(state, show_help=not state.show_help) elif key == ord('/'): # Start search