Replies: 2 comments
-
This would certainly help with long lists and menus. Perhaps an option to specify a key for each item, so that we could have numbered menus? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've used other prompt systems where you get a filter text at the top of the prompt. Really useful for long lists.
Then if you press "c" it would filter the list of items to just show "cat". Works for multiselect prompts as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
If
SelectionPrompt
has many entries it would be nice if you could jump to the right area by pressing the corresponding letter. This is consistent with most other selection systems (e.g. file explorers, listboxes etc).I have looked in the backlog and not seen this discussed (the closest I found was #172), appologies if I have missed it or if there is an obvious reason why this isn't a good idea.
Describe the solution you'd like
Pressing a letter key (A-Z) should move the selection to the next prompt item that begins with that letter
Here is a unit test that demonstrates what I am proposing. I copied a test in
ListPromptStateTests
for the formatI've opened a PR for this here #996
Beta Was this translation helpful? Give feedback.
All reactions