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