From 0ef3832e59864e7f32934de03ba44e1ad03abb50 Mon Sep 17 00:00:00 2001 From: Chris McDonnell Date: Thu, 20 Feb 2025 13:11:18 -0500 Subject: [PATCH] docs: Add reference to confirmation key to intro message --- pkg/gui/gui.go | 9 ++++++++- pkg/i18n/english.go | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 51a1bf2c7..cf62011ca 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -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, }) diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 3bd2ca528..f4a781c9a 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -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 = `