Repository: jesseduffield/lazygit (language: go)

Issue:
The help text on the commit description panel doesn't reflect the `universal.togglePanel` keybinding.
**Describe the bug**
The 0.38.0 release added the (incredibly useful) "Commit description" panel, which includes a helpful "Press tab to toggle focus" message. This message does not actually reflect the `universal.togglePanel` keybinding, however, which is both confusing and (even worse) misleading.

**To Reproduce**
Steps to reproduce the behavior:

1. Rebind `universal.togglePanel` to something other than tab (I've set it to `'<f1>'` in the example below).
2. Run lazygit.
3. Attempt to commit a change.
4. Notice the "Commit description" panel's help text still indicates you should "Press tab to toggle focus".

**Expected behavior**
The help message should either:
- reflect the actual keybinding ("Press F1 to toggle focus" in my example)
- be omitted entirely (if properly representing all possible keybindings in a legible manner proves difficult)
- be changed to something more generally applicable, like "Use your 'toggle panel' key to change focus" (which is admittedly *awful* messaging, but at least is always correct)

**Screenshots**
![Screenshot 2023-05-03 11 04 01](https://user-images.githubusercontent.com/8892759/235978095-7e6a8070-e6da-40d6-8d16-0697cf6ef829.png)

**Version info:**
lazygit:
> commit=5149b24ab3dfad3860e2300519c7c583dcc8c9ff, build date=2023-05-03T08:00:22Z, build source=binaryRelease, version=0.38.2, os=linux, arch=amd64, git version=2.37.2

git:
> git version 2.37.2

**Additional context**
Verified to be an issue on 0.38.0, 0.38.1, and 0.38.2.



Discussion / hints:

Fix patch:
diff --git a/pkg/gui/views.go b/pkg/gui/views.go
index 15bd3c8673f..8567af797b8 100644
--- a/pkg/gui/views.go
+++ b/pkg/gui/views.go
@@ -3,7 +3,9 @@ package gui
 import (
 	"github.com/jesseduffield/generics/slices"
 	"github.com/jesseduffield/gocui"
+	"github.com/jesseduffield/lazygit/pkg/gui/keybindings"
 	"github.com/jesseduffield/lazygit/pkg/theme"
+	"github.com/jesseduffield/lazygit/pkg/utils"
 )
 
 type viewNameMapping struct {
@@ -159,7 +161,10 @@ func (gui *Gui) createAllViews() error {
 
 	gui.Views.CommitDescription.Visible = false
 	gui.Views.CommitDescription.Title = gui.c.Tr.CommitDescriptionTitle
-	gui.Views.CommitDescription.Subtitle = gui.Tr.CommitDescriptionSubTitle
+	gui.Views.CommitDescription.Subtitle = utils.ResolvePlaceholderString(gui.Tr.CommitDescriptionSubTitle,
+		map[string]string{
+			"togglePanelKeyBinding": keybindings.Label(gui.UserConfig.Keybinding.Universal.TogglePanel),
+		})
 	gui.Views.CommitDescription.FgColor = theme.GocuiDefaultTextColor
 	gui.Views.CommitDescription.Editable = true
 	gui.Views.CommitDescription.Editor = gocui.EditorFunc(gui.commitDescriptionEditor)
diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go
index f916c3c4d18..5f937057d1b 100644
--- a/pkg/i18n/english.go
+++ b/pkg/i18n/english.go
@@ -886,7 +886,7 @@ func EnglishTranslationSet() TranslationSet {
 		RebaseOptionsTitle:                  "Rebase options",
 		CommitMessageTitle:                  "Commit summary",
 		CommitDescriptionTitle:              "Commit description",
-		CommitDescriptionSubTitle:           "Press tab to toggle focus",
+		CommitDescriptionSubTitle:           "Press {{.togglePanelKeyBinding}} to toggle focus",
 		LocalBranchesTitle:                  "Local branches",
 		SearchTitle:                         "Search",
 		TagsTitle:                           "Tags",


Test patch: