[REQUEST] option to respond to choices with digits
See original GitHub issueHow would you improve Rich?
related to #306, It would be nice to make it easier to pick from a variety of annoying-to-type choices:
choices = ['Some really long and annoying thing to type', 'Another really long...']
Prompt.ask('pick one', choices=choices, with_digits=True)
could prompt as follows (or something like this … where the valid responses are now digits)
[1] Some really long and annoying thing to type
[2] Another really long...
pick one [1/2]:
What problem does it solve for you?
makes it much easier to request categorical values
in #306, readline
was mentioned, but I didn’t follow, so let me know if there’s already a better way to do this.
thanks for rich!!
Issue Analytics
- State:
- Created 2 years ago
- Comments:11
Top Results From Across the Web
Get started with DIGITS | T-Mobile Support
Check out the available DIGITS options below. On this page: PROXY by DIGITS; DIGITS Talk & Text; Data with paired DIGITS; Setup DIGITS...
Read more >Formatting Answer Choices - Qualtrics
Editing Answer Choices ... To edit an answer choice, simply click the answer choice in the survey editor and type the choice into...
Read more >Form, question, response, and character limits in Microsoft ...
Learn about the limits to the number of forms, questions per form, and responses per form for Microsoft Forms.
Read more >Accept numbers in different language for multiple choice answer of ...
If I have a "Ask a Question" step of multiple-choice type and the options are numbers (e.g. 1, 2, 3). The contact replies...
Read more >HTTP/1.1: Status Code Definitions
The server MUST send a final response after the request has been completed. ... If the server has a preferred choice of representation,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for your suggestions! Have created a PR 😃
Did I solve your problem?
Why not buy the devs a coffee to say thanks?