refactor: Remove line number indicator and change line number toggle key
This commit is contained in:
parent
3bf54e38c7
commit
386163a5b8
5
gtm
5
gtm
|
|
@ -560,12 +560,11 @@ def draw_status_bars(stdscr, state):
|
|||
|
||||
# Add indicators to commit message
|
||||
wrap_indicator = "" if state.wrap_lines else "[NW] "
|
||||
line_num_indicator = "[LN] " if state.show_line_numbers else ""
|
||||
change_indicator = ""
|
||||
if state.change_blocks and state.current_change_idx != -1:
|
||||
change_indicator = f"[Change {state.current_change_idx + 1}/{len(state.change_blocks)}] "
|
||||
|
||||
commit_message = wrap_indicator + line_num_indicator + change_indicator + commit_message
|
||||
commit_message = wrap_indicator + change_indicator + commit_message
|
||||
|
||||
# Status bar percentages
|
||||
if len(state.file_lines) > 0:
|
||||
|
|
@ -845,7 +844,7 @@ def handle_keyboard_input(key, state: AppState) -> AppState:
|
|||
return toggle_sidebar(state)
|
||||
elif key == ord('w'):
|
||||
return replace(state, wrap_lines=not state.wrap_lines)
|
||||
elif key == ord('L'): # Capital L to toggle line numbers
|
||||
elif key == ord('l'):
|
||||
return replace(state, show_line_numbers=not state.show_line_numbers)
|
||||
elif key in [110, ord('n')]: # ASCII code for 'n'
|
||||
if state.show_whole_diff or state.show_additions or state.show_deletions:
|
||||
|
|
|
|||
Loading…
Reference in New Issue