1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-06 22:33:07 +02:00

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.
This commit is contained in:
Stefan Haller
2025-07-19 12:36:29 +02:00
parent 72a8e8194d
commit 0cfe42b43f

View File

@ -230,6 +230,8 @@ func (gui *Gui) configureViewProperties() {
gui.Views.ReflogCommits.TitlePrefix = jumpLabels[3] gui.Views.ReflogCommits.TitlePrefix = jumpLabels[3]
gui.Views.Stash.TitlePrefix = jumpLabels[4] gui.Views.Stash.TitlePrefix = jumpLabels[4]
gui.Views.Main.TitlePrefix = keyToTitlePrefix(gui.c.UserConfig().Keybinding.Universal.FocusMainView)
} else { } else {
gui.Views.Status.TitlePrefix = "" gui.Views.Status.TitlePrefix = ""
@ -245,6 +247,8 @@ func (gui *Gui) configureViewProperties() {
gui.Views.ReflogCommits.TitlePrefix = "" gui.Views.ReflogCommits.TitlePrefix = ""
gui.Views.Stash.TitlePrefix = "" gui.Views.Stash.TitlePrefix = ""
gui.Views.Main.TitlePrefix = ""
} }
for _, view := range gui.g.Views() { for _, view := range gui.g.Views() {