mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-10 20:05:50 +02:00
docs(custom-command): note on .PromptResponses
as `.PromptResponses` is still commonly used [as demonstrated in the command compendium](https://github.com/jesseduffield/lazygit/wiki/Custom-Commands-Compendium), it would be wise to let users know of its disadvantages
This commit is contained in:
parent
facc73a88b
commit
d60d1068e2
1 changed files with 3 additions and 0 deletions
|
@ -104,6 +104,9 @@ These fields are applicable to all prompts.
|
|||
| title | The title to display in the popup panel | no |
|
||||
| key | Used to reference the entered value from within the custom command. E.g. a prompt with `key: 'Branch'` can be referred to as `{{.Form.Branch}}` in the command | yes |
|
||||
|
||||
> [!TIP]
|
||||
> Fetching `key` via `.PromptResponses` is not encouraged, see https://github.com/jesseduffield/lazygit/issues/2103
|
||||
|
||||
### Input
|
||||
|
||||
| _field_ | _description_ | _required_ |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue