ConsoleGuiTools icon indicating copy to clipboard operation
ConsoleGuiTools copied to clipboard

Please add the ability to have "Default" selections when using Multiple OutputMode

Open lexiismadd opened this issue 2 years ago • 2 comments

Summary of the new feature / enhancement

Please add the ability to add "default" selections when using the Multiple OutputMode. By adding this, we could present the end user with the Gridview with already pre-selected options which they can then choose to deselect and/or select additional options from what are shown

Proposed technical implementation details (optional)

No response

lexiismadd avatar Aug 08 '23 23:08 lexiismadd

Could you provide an example invocation so I can better understand?

E.g.:

ls | ocgv -OutputMode Multiple Select @{ Index = 1; Index = 3 } would select the 1st and 3rd file.

ls | ocgv -Select @{ Name = ".gitconfig" } would select the first file named ".gitconfig".

tig avatar Aug 09 '23 05:08 tig

Actually, both of those examples would work great. Also perhaps where an array of PSCustomObjects are passed to ocgv, passing another array with the PSCustomObjects that you want pre-selected in the list. But those two options you presented would be great!

lexiismadd avatar Aug 09 '23 06:08 lexiismadd