From 4298b4cfaa8478901876a8fd94360a003e907bf3 Mon Sep 17 00:00:00 2001 From: "suhird.singh" Date: Wed, 24 Jun 2026 13:40:11 -0400 Subject: [PATCH] gui: show gg/G shortcuts in the options bar for the main panel When the main panel is focused (e.g. the Container Config screen) the options bar now lists the gg/G scroll-to-top/bottom shortcuts alongside the existing scroll and navigation hints. --- pkg/gui/gui.go | 10 ++++++++++ pkg/gui/view_helpers.go | 2 ++ 2 files changed, 12 insertions(+) diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index f3b076c6..266378e9 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -171,6 +171,16 @@ func (gui *Gui) renderGlobalOptions() error { }) } +func (gui *Gui) renderMainOptions() error { + return gui.renderOptionsMap(map[string]string{ + "PgUp/PgDn": gui.Tr.Scroll, + "← → ↑ ↓": gui.Tr.Navigate, + "gg": gui.Tr.GotoTop, + "G": gui.Tr.GotoBottom, + "esc": gui.Tr.Return, + }) +} + func (gui *Gui) goEvery(interval time.Duration, function func() error) { _ = function() // time.Tick doesn't run immediately so we'll do that here // TODO: maybe change go func() { diff --git a/pkg/gui/view_helpers.go b/pkg/gui/view_helpers.go index 6acbb18c..5bb354e7 100644 --- a/pkg/gui/view_helpers.go +++ b/pkg/gui/view_helpers.go @@ -230,6 +230,8 @@ func (gui *Gui) renderPanelOptions() error { return gui.renderMenuOptions() case "confirmation": return gui.renderConfirmationOptions() + case "main": + return gui.renderMainOptions() } return gui.renderGlobalOptions() }