diff options
author | Elwardi <elwardifadeli@gmail.com> | 2021-08-06 10:53:32 +0100 |
---|---|---|
committer | Elwardi <elwardifadeli@gmail.com> | 2021-08-06 10:53:32 +0100 |
commit | 906ec30cac9ea632006b295b30bca732498f81bc (patch) | |
tree | 1e353d4196f2b493b118a636fadbd7c884af426b /docs/Custom_Command_Keybindings.md | |
parent | a8ec044f0e52bff8921592fb4d334a4d6f4c7468 (diff) |
Minor changes to menuFromCommand prompts
Diffstat (limited to 'docs/Custom_Command_Keybindings.md')
-rw-r--r-- | docs/Custom_Command_Keybindings.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/Custom_Command_Keybindings.md b/docs/Custom_Command_Keybindings.md index c167309f8..9a5c89609 100644 --- a/docs/Custom_Command_Keybindings.md +++ b/docs/Custom_Command_Keybindings.md @@ -47,8 +47,8 @@ customCommands: title: 'Remote branch:' command: 'git branch -r --list {{index .PromptResponses 0}}/*' filter: '.*{{index .PromptResponses 0}}/(?P<branch>.*)' - itemFormat: '{{ .branch }}' - descriptionFormat: '' + valueFormat: '{{ .branch }}' + labelFormat: '' ``` Looking at the command assigned to the 'n' key, here's what the result looks like: @@ -103,11 +103,11 @@ The permitted prompt fields are: | | menu options | | | filter | (only applicable to 'menuFromCommand' prompts) the regexp to run specifying | yes | | | groups which are going to be kept from the command's output | | -| itemFormat | (only applicable to 'menuFromCommand' prompts) how to format matched groups from | yes | +| valueFormat | (only applicable to 'menuFromCommand' prompts) how to format matched groups from | yes | | | the filter to construct a menu item. You can use named groups, | yes | | | or `{{ .group_GROUPID }}`. | | | | PS: named groups keep first match only | yes | -| descriptionFormat | (only applicable to 'menuFromCommand' prompts) how to format matched groups from | yes | +| labelFormat | (only applicable to 'menuFromCommand' prompts) how to format matched groups from | yes | | | the filter to construct a menu item's description. You can use named groups, | yes | | | or `{{ .group_GROUPID }}`. | | | | PS: named groups keep first match only | yes | |