mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Support suggestions generated from command in custom commands
This changes the interface a bit but it was only added earlier today so I doubt anybody is dependent on it yet. I'm also updating the docs.
This commit is contained in:
@ -27,10 +27,12 @@ var SuggestionsPreset = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Command: `git checkout {{.Form.Branch}}`,
|
||||
Prompts: []config.CustomCommandPrompt{
|
||||
{
|
||||
Key: "Branch",
|
||||
Type: "input",
|
||||
Title: "Enter a branch name",
|
||||
SuggestionsPreset: "branches",
|
||||
Key: "Branch",
|
||||
Type: "input",
|
||||
Title: "Enter a branch name",
|
||||
Suggestions: config.CustomCommandSuggestions{
|
||||
Preset: "branches",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user