This extension lets you populate a dynamic list of options from which you can pick a value during debugging or running tasks.
var
parameter in args
and dynamic-inputs.read
commandunwrap
serializer
option with the following value: json
or plain
(will pass multiple selections with a space delimiter)dynamic-inputs.read
- attempts to read from memory or shows a selection listdynamic-inputs.write
- always offers to a selection and saves the selection to the memory if args.var
is givenSupported variables in interpolation
Given
[
{ "label": "$(notebook-state-success) A", "value": "A", "picked": true },
{ "label": "$(notebook-state-error) B", "value": "B" },
{ "label": "$(notifications-configure) C", "value": "C" }
]
To receive ["A", "B"]
as your selection, you can use the following JSON path expression $[*].value
git clone https://github.com/igrek8/dynamic-inputs
code dynamic-inputs/playground
Icons made by Freepik from www.flaticon.com