feat: Add 'c' and 'C' keys for jumping to next and previous changes

This commit is contained in:
n loewen (aider) 2025-06-08 02:32:18 +01:00
parent a2e78cbea9
commit c4be052790
1 changed files with 6 additions and 0 deletions

6
gtm
View File

@ -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)