Skip to content

Commit

Permalink
docs: Add reference to confirmation key to intro message
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris McDonnell committed Feb 20, 2025
1 parent fc7d149 commit c0eab10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,9 +1012,16 @@ func (gui *Gui) showIntroPopupMessage() {
return err
}

introMessage := utils.ResolvePlaceholderString(
gui.c.Tr.IntroPopupMessage,
map[string]string{
"confirmationKey": gui.c.UserConfig().Keybinding.Universal.Confirm,
},
)

gui.c.Confirm(types.ConfirmOpts{
Title: "",
Prompt: gui.c.Tr.IntroPopupMessage,
Prompt: introMessage,
HandleConfirm: onConfirm,
HandleClose: onConfirm,
})
Expand Down
2 changes: 2 additions & 0 deletions pkg/i18n/english.go
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,8 @@ Thanks for using lazygit! Seriously you rock. Three things to share with you:
You can also sponsor me and tell me what to work on by clicking the donate
button at the bottom right.
Or even just star the repo to share the love!
Press {{confirmationKey}} to get started.
`

const englishDeprecatedEditConfigWarning = `
Expand Down

0 comments on commit c0eab10

Please sign in to comment.