Skip to content

OCGV: Request: Focus a specific row on opening the grid view #127

Open
@LarsFosdal

Description

@LarsFosdal

Consider:
$L = Get-TineWMSLocation -StagingLive
$P = Get-TineWMSLocation -StagingPilot
$T = Get-TineWMSLocation -StagingTrunk
$List = @($L, $P, $T)
$sel = $List | Select-Object BuildName, GlobalLocationId, LocationName | Out-ConsoleGridView -OutputMode Single -Title "Select Build for synchronisation"

Coming to this code, I have a target which has buildname 'Pilot', i.e. the second of the options.
I would like to have that option preselected so that all the user has to do, is to press enter.

Suggestion - add an option to focus a row.
F.x. Out-ConsoleGridView -OutputMode Single -Focus 'Live'
-Focus could use the first column as "key"
This could also work for -OutputMode Multiple where it would focus the first list row where the first column matches the focus string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions