mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04: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
|
|
@ -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…
Reference in a new issue