1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-09-16 09:16:26 +02:00

Add menu prompt

This makes it possible to add a prompt to a menu. It will be shown above the
menu items, separated from them by a blank line.
This commit is contained in:
Stefan Haller
2024-06-11 15:49:19 +02:00
parent dbc21af3b1
commit 7e92dbfd3d
4 changed files with 63 additions and 4 deletions

View File

@@ -159,6 +159,7 @@ const (
type CreateMenuOptions struct {
Title string
Prompt string // a message that will be displayed above the menu options
Items []*MenuItem
HideCancel bool
ColumnAlignment []utils.Alignment