From 0cfe42b43f473e69277319027a547da2d16b7897 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 19 Jul 2025 12:36:29 +0200 Subject: [PATCH] Show the key for focusing the main view ("[0]" by default) in the main view title prefix We show it only if the "showPanelJumps" config is on, although the focus-main-view command is not technically part of the panel jump keys; but it looks similar. --- pkg/gui/views.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/gui/views.go b/pkg/gui/views.go index 507e9e4b1..8eb62c623 100644 --- a/pkg/gui/views.go +++ b/pkg/gui/views.go @@ -230,6 +230,8 @@ func (gui *Gui) configureViewProperties() { gui.Views.ReflogCommits.TitlePrefix = jumpLabels[3] gui.Views.Stash.TitlePrefix = jumpLabels[4] + + gui.Views.Main.TitlePrefix = keyToTitlePrefix(gui.c.UserConfig().Keybinding.Universal.FocusMainView) } else { gui.Views.Status.TitlePrefix = "" @@ -245,6 +247,8 @@ func (gui *Gui) configureViewProperties() { gui.Views.ReflogCommits.TitlePrefix = "" gui.Views.Stash.TitlePrefix = "" + + gui.Views.Main.TitlePrefix = "" } for _, view := range gui.g.Views() {