1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

docs: Add reference to confirmation key to intro message

This commit is contained in:
Chris McDonnell
2025-02-20 13:11:18 -05:00
committed by Stefan Haller
parent b766ff9c83
commit 0ef3832e59
2 changed files with 10 additions and 1 deletions

View File

@@ -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,
})