Skip to content

How can I get any of the select lists (MultiSelectionPrompt for example) to remember the last-selected index? #1805

Open
@DecapitatedKneecap

Description

@DecapitatedKneecap

I am reusing instances of MultiSelectionPrompt<T>. I like that it remembers the previous item selections on consecutive calls to AnsiConsole.Prompt(myPromptInstance), but it always initializes the selected index at 0. I want it to remember the last index so that I don't have to keep arrowing back down to it.

How can I get that to persist?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo 🕑

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions