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

Support checkbox #11

Open
Munksgaard opened this issue Jul 16, 2016 · 2 comments · May be fixed by #12
Open

Support checkbox #11

Munksgaard opened this issue Jul 16, 2016 · 2 comments · May be fixed by #12

Comments

@Munksgaard
Copy link
Owner

This is a tracking/discussion issue for supporting a checkbox style prompt. Such a prompt would allow the user to select more than one items from a list. The inspiration is the checkbox function from the Inquirer.js library:

Image of checkbox style menu

This issue is for discussing such a feature and how to implement it.

@Munksgaard
Copy link
Owner Author

After reviewing the checkbox function from Inquirer.js, I think it feels overengineered.

  • It functions as a sort of looping list, where you can scroll up and down infinitely.
  • There is support for "headlines", disabled list items which just serve to categorize the items

To keep things simple, I think we should get rid of those two, and keep our library relatively simple.

However, I'm curious if anyone else thinks differently? Is there a need for categorization? Would you often have a list of 10+ choices (which might justify the loopy scrolling behavior)?

@Munksgaard
Copy link
Owner Author

I've started an implementation in #12.

Perhaps we need to support having some values enabled by default?

This was referenced Jul 16, 2016
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

Successfully merging a pull request may close this issue.

1 participant