refactor: Adjust help popup layout and formatting
This commit is contained in:
parent
0ab7482d5d
commit
4e10b79b8e
6
gtm
6
gtm
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue