feat: Add 'c' and 'C' keys for jumping to next and previous changes
This commit is contained in:
parent
a2e78cbea9
commit
c4be052790
6
gtm
6
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue