feat: Add "[NM]" indicator in status bar when mouse mode is disabled
This commit is contained in:
parent
125bc3173e
commit
313acdac8a
3
gtm
3
gtm
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue