Skip to content

Commit 0cfe42b

Browse files
committed
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.
1 parent 72a8e81 commit 0cfe42b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/gui/views.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ func (gui *Gui) configureViewProperties() {
230230
gui.Views.ReflogCommits.TitlePrefix = jumpLabels[3]
231231

232232
gui.Views.Stash.TitlePrefix = jumpLabels[4]
233+
234+
gui.Views.Main.TitlePrefix = keyToTitlePrefix(gui.c.UserConfig().Keybinding.Universal.FocusMainView)
233235
} else {
234236
gui.Views.Status.TitlePrefix = ""
235237

@@ -245,6 +247,8 @@ func (gui *Gui) configureViewProperties() {
245247
gui.Views.ReflogCommits.TitlePrefix = ""
246248

247249
gui.Views.Stash.TitlePrefix = ""
250+
251+
gui.Views.Main.TitlePrefix = ""
248252
}
249253

250254
for _, view := range gui.g.Views() {

0 commit comments

Comments
 (0)