From d60d1068e2e14d486ec28684698659d702d99166 Mon Sep 17 00:00:00 2001 From: Minh Tran <33189614+minhtrancccp@users.noreply.github.com> Date: Sat, 5 Apr 2025 14:53:26 +0700 Subject: [PATCH] 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 --- docs/Custom_Command_Keybindings.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/Custom_Command_Keybindings.md b/docs/Custom_Command_Keybindings.md index 265e86eb9..94060d158 100644 --- a/docs/Custom_Command_Keybindings.md +++ b/docs/Custom_Command_Keybindings.md @@ -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_ |