gum: Since version 0.10 `gum choose --no-limit` selection of one element by `Enter` does not work
Since version 0.10 gum choose --no-limit
selection of one element by Enter
does not work
To Reproduce in versions 0.7-0.9 when pressing Enter one element at a time it is selected, in version 0.10 nothing will be selected
0.7-0.9
> printf '%s\n' Foo Bar Baz | gum choose --no-limit; echo $?
Foo
0
0.10
> printf '%s\n' Foo Bar Baz | gum choose --no-limit; echo $?
0
Desktop:
Linux 5.15.0-50-generic x86_64 Ubuntu 22.04.2 LTS (Jammy Jellyfish)
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 2
- Comments: 16 (5 by maintainers)
@alexn-s In your example you would need to separate the options by newlines:
or:
To select, you can press <kbd>ctrl+space</kbd> or <kbd>tab</kbd>
@WoozyMasta imo the problem with just selecting the highlighted one was that it didn’t seem obvious that it would select it if I pressed enter. But I also hear you on the issue with the additional button press and that it is a breaking change.
However both functionalities are wanted and I’m not in a position to make the choice about this (:
The selection behaviour was changed by https://github.com/charmbracelet/gum/commit/e6de7749b139c3ff38285437d390f5f92e1689fb referring to #140 (: