Skip to content

Add select-all and invert-selection to all select-like prompts #557

@aqeelat

Description

@aqeelat

Context

This came up while evaluating @clack/prompts as a potential replacement for enquirer.js, comparing it with enquirer.js and @inquirer/prompts.

Split out from: #550

Problem

The flat multiselect prompt supports:

a = toggle all
i = invert selection

groupMultiselect does not currently support the same keybindings across all groups.

This makes bulk selection harder in grouped prompts, especially when there are many options.

Proposal

Add select-all and invert-selection behavior to all relevant select-like prompts.

For groupMultiselect:

  • a should toggle all selectable options across all groups
  • i should invert all selectable options across all groups
  • Disabled/separator/header rows should not be affected

This would make grouped selection behavior more consistent with multiselect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions