Skip to content

Add multi-select support to choice prompts - #2094

Open
nickita-khylkouski wants to merge 1 commit into
prompt-toolkit:mainfrom
nickita-khylkouski:feature/2019-choice-multi-select
Open

nickita-khylkouski wants to merge 1 commit into
prompt-toolkit:mainfrom
nickita-khylkouski:feature/2019-choice-multi-select

Conversation

@nickita-khylkouski

Copy link
Copy Markdown

Closes #2019.

Adds an opt-in multiple-selection mode to choice() and ChoiceInput, using space to toggle options and Enter to return selected values in option order. It supports initial selections, sync and async entry points, formatted options, custom bindings, and unhashable values.

Tests:

  • 321 tests passed
  • Ruff check and format passed
  • mypy strict passed
  • typos passed
  • package build passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add multi-select to Choice()

1 participant