Skip to content

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

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

Open
DecapitatedKneecap opened this issue Apr 13, 2025 · 0 comments

Comments

@DecapitatedKneecap
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo 🕑
Development

No branches or pull requests

1 participant