mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-14 17:46:26 -04: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:
parent
72a8e8194d
commit
0cfe42b43f
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue