From c4be052790ec4fc250fd1de3d80eb74b631d674f Mon Sep 17 00:00:00 2001 From: "n loewen (aider)" Date: Sun, 8 Jun 2025 02:32:18 +0100 Subject: [PATCH] feat: Add 'c' and 'C' keys for jumping to next and previous changes --- gtm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtm b/gtm index 4c01f21..c4aeaec 100755 --- a/gtm +++ b/gtm @@ -1013,6 +1013,12 @@ def handle_keyboard_input(key, state: AppState) -> AppState: elif key in [78, ord('N')]: # ASCII code for 'N' (uppercase) if state.search_matches: return jump_to_prev_match(state) + elif key in [99, ord('c')]: # ASCII code for 'c' + if state.show_whole_diff or state.show_additions or state.show_deletions: + return jump_to_next_change(state) + elif key in [67, ord('C')]: # ASCII code for 'C' (uppercase) + if state.show_whole_diff or state.show_additions or state.show_deletions: + return jump_to_prev_change(state) elif key in [112, ord('p')]: # ASCII code for 'p' if state.show_whole_diff or state.show_additions or state.show_deletions: return jump_to_prev_change(state)