Closed astrovsky01 closed 2 months ago
@astrovsky01 would something like this work for you?
This is a custom command that you can invoke from the VSCode Command Palette (or directly using the default shortcut ctrl+alt+i+p
or cmd+alt+i+p
on Mac) and will let you select the desired input to insert at your current cursor position.
Let me know if this would work for you, then I'll do a similar thing for getting the filter like example_conditional_1['example_conditional_2']['example_param_2']
@davelopez that looks fantastic! Thank you so much for working on this!
With longer and more complicated tools, nested conditionals and sub-parameters can be annoying to properly reference, necessitating tracing down a nested tag properly, and often times cause errors as one can be easily missed. This is the same with filter steps in outputs, where tracing the lineage of a tag and specific value can cause annoyance. I would like a way to easily extract the method of referencing a tag for both the command and output filers. In an example below, I would like to be able easily reference the param
target
within the command ($example_conditional.example_conditional_2.example_param_2
), as well as generate a filter for whentarget
's value is set for to generate an output (example_conditional_1['example_conditional_2']['example_param_2']
) that can be modified easily (adding anin
,==
, etc.)