refactor: Adjust help popup layout and formatting

This commit is contained in:
n loewen 2025-06-08 02:42:24 +01:00 committed by n loewen (aider)
parent 0ab7482d5d
commit 4e10b79b8e
1 changed files with 3 additions and 3 deletions

6
gtm
View File

@ -712,7 +712,7 @@ def draw_help_popup(stdscr, state):
("l / Right", "Focus right pane"),
("", ""),
("Features", ""),
("/ (slash)", "Search in file"),
("/", "Search in file"),
("n", "Next search match"),
("N", "Previous search match"),
("c", "Next change"),
@ -727,7 +727,7 @@ def draw_help_popup(stdscr, state):
# Draw help content
for i, (key, desc) in enumerate(help_items):
y = popup_y + 2 + i
if y < popup_y + popup_height - 1:
if y < popup_y + popup_height - 2:
if key == "Navigation" or key == "Features":
# Section headers
try:
@ -738,7 +738,7 @@ def draw_help_popup(stdscr, state):
# Key and description
try:
stdscr.addstr(y, popup_x + 2, key, curses.A_BOLD)
stdscr.addstr(y, popup_x + 16, desc)
stdscr.addstr(y, popup_x + 22, desc)
except curses.error:
pass