feat: Add "[NM]" indicator in status bar when mouse mode is disabled

This commit is contained in:
n loewen (aider) 2025-06-08 10:08:43 +01:00
parent 125bc3173e
commit 313acdac8a
1 changed files with 2 additions and 1 deletions

3
gtm
View File

@ -885,6 +885,7 @@ def draw_main_status_line(stdscr, state: AppState, layout: StatusBarLayout):
# Add indicators to status bar # Add indicators to status bar
wrap_indicator = "" if state.wrap_lines else "[NW] " wrap_indicator = "" if state.wrap_lines else "[NW] "
mouse_indicator = "" if state.enable_mouse else "[NM] "
change_indicator = "" change_indicator = ""
if state.change_blocks and state.current_change_idx != -1: if state.change_blocks and state.current_change_idx != -1:
change_indicator = f"[Change {state.current_change_idx + 1}/{len(state.change_blocks)}] " change_indicator = f"[Change {state.current_change_idx + 1}/{len(state.change_blocks)}] "
@ -893,7 +894,7 @@ def draw_main_status_line(stdscr, state: AppState, layout: StatusBarLayout):
if state.search_matches: if state.search_matches:
search_indicator = f"[Search {state.current_match_idx + 1}/{len(state.search_matches)}] " search_indicator = f"[Search {state.current_match_idx + 1}/{len(state.search_matches)}] "
status_indicators = wrap_indicator + change_indicator + search_indicator status_indicators = wrap_indicator + mouse_indicator + change_indicator + search_indicator
# Status bar percentages # Status bar percentages
if len(state.file_lines) > 0: if len(state.file_lines) > 0: