From 4e10b79b8ea2cfa6cc7d6a21c8e06f12853477ae Mon Sep 17 00:00:00 2001 From: n loewen Date: Sun, 8 Jun 2025 02:42:24 +0100 Subject: [PATCH] refactor: Adjust help popup layout and formatting --- gtm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtm b/gtm index 1ebe9b4..2331bb4 100755 --- a/gtm +++ b/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