We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally, I raised this issue in copier repo. Pasting it here, as copier relies on this library.
copier
Code:
import questionary questionary.checkbox( 'tags', choices=[ "A", "B", "C", ]).ask()
<space> to select
<a> to toggle
<i> to invert
Initially, I thought that all these actions refer to a (one) selection. But in this case, all these actions would do the same thing.
Only after playing around with all keys, I understood everything
Let's address this bit by bit.
What actions do:
Scopes:
Maybe rewrite it like this:
<space> toggle
<a> select all
<i> invert selection
If we came to consensus, I can make a PR.
@pawamoy also suggested this:
<space> (un)select
<a> (un)select all
And also we had an idea for new option:
<enter> confirm
questionary.checkbox has option instruction with which we can configure what hinting text is displayed.
questionary.checkbox
instruction
Which is awesome!
But still IMHO default hints can be improved a bit. Free to discuss 😄
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the problem
Originally, I raised this issue in
copier
repo. Pasting it here, ascopier
relies on this library.Code:
<space> to select
- select what?<a> to toggle
- toggle what?<i> to invert
- invert what?Initially, I thought that all these actions refer to a (one) selection. But in this case, all these actions would do the same thing.
Only after playing around with all keys, I understood everything
Describe the solution
Let's address this bit by bit.
What actions do:
<space> to select
- toggles a single option under the arrow.<a> to toggle
- either:<i> to invert
- inverts current assignments. What was selected become deselected, what was deselected became selected.Scopes:
<space> to select
- single choice.<a> to toggle
- all choices.<i> to invert
- all choices.Maybe rewrite it like this:
<space> to select
-<space> toggle
<a> to toggle
-<a> select all
<i> to invert
-<i> invert selection
If we came to consensus, I can make a PR.
@pawamoy also suggested this:
<space> (un)select
<a> (un)select all
<i> invert selection
And also we had an idea for new option:
<enter> confirm
Alternatives considered
questionary.checkbox
has optioninstruction
with which we can configure what hinting text is displayed.Which is awesome!
But still IMHO default hints can be improved a bit. Free to discuss 😄
The text was updated successfully, but these errors were encountered: