Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lexiismadd opened this issue Aug 8, 2023 · 2 comments
Labels
enhancement New feature or request OCGV

Comments

@lexiismadd
Copy link

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

@tig
Copy link
Collaborator

tig commented Aug 9, 2023

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 tig added enhancement New feature or request OCGV labels Aug 9, 2023
@lexiismadd
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request OCGV
Projects
None yet
Development

No branches or pull requests

2 participants