Skip to content

Commit fce3400

Browse files
author
Chris McDonnell
committed
docs: Add reference to confirmation key to intro message
1 parent eb5d659 commit fce3400

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pkg/gui/gui.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,9 +1012,16 @@ func (gui *Gui) showIntroPopupMessage() {
10121012
return err
10131013
}
10141014

1015+
introMessage := utils.ResolvePlaceholderString(
1016+
gui.c.Tr.IntroPopupMessage,
1017+
map[string]string{
1018+
"confirmationKey": gui.c.UserConfig().Keybinding.Universal.Confirm,
1019+
},
1020+
)
1021+
10151022
gui.c.Confirm(types.ConfirmOpts{
10161023
Title: "",
1017-
Prompt: gui.c.Tr.IntroPopupMessage,
1024+
Prompt: introMessage,
10181025
HandleConfirm: onConfirm,
10191026
HandleClose: onConfirm,
10201027
})

pkg/i18n/english.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,8 @@ Thanks for using lazygit! Seriously you rock. Three things to share with you:
10191019
You can also sponsor me and tell me what to work on by clicking the donate
10201020
button at the bottom right.
10211021
Or even just star the repo to share the love!
1022+
1023+
Press {{confirmationKey}} to get started.
10221024
`
10231025

10241026
const englishDeprecatedEditConfigWarning = `

0 commit comments

Comments
 (0)