Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

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

Open

Description

@lexiismadd

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

Activity

  1. tig commented on Aug 9, 2023

    @tig
    Collaborator

    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".

  2. lexiismadd commented on Aug 9, 2023

    @lexiismadd
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions