Skip to content

Space does not toggle items in choose multi-select #1143

Description

@64kramsystem

Hi!

In Gum 2.0.0, Space does not toggle an item in gum choose --no-limit; x and Tab still work.

To reproduce, run:

printf '%s\n' one two | gum choose --no-limit

Press Space. The highlighted item should toggle, but nothing happens.

The choose keymap registers a literal " ", while KeyPressMsg.String() returns "space" and key.Matches compares the strings exactly. Changing the binding to "space" should fix it.

Environment: macOS, Homebrew, Gum 2.0.0.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions