Skip to content
New issue

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

multi-select from a single choice #19

Closed
bjarthur opened this issue Jun 19, 2018 · 1 comment
Closed

multi-select from a single choice #19

bjarthur opened this issue Jun 19, 2018 · 1 comment

Comments

@bjarthur
Copy link
Contributor

bjarthur commented Jun 19, 2018

my use case is that i programmatically calculate the choices from a search in a database, and then want to give the user the opportunity to manually prune a few bad results. multi-select is perfect for this.

the problem is that on occasion there is just one entry in the database, and i'd still like to give the user the opportunity to discard it. as terminalmenus.jl stands now, i have to add logic to handle this case. would be better to remove the restriction that there must be at least two choices. if you agree, i'm happy to work up a PR. let me know. thanks.

nick-paul added a commit that referenced this issue Jun 21, 2018
@nick-paul
Copy link
Owner

There was no reason for the limit other than the fact that never thought about them being used with <2 choices. I was able to remove the restriction in #20. Will it work for your use case?

nick-paul pushed a commit that referenced this issue Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants