TejasQ/add-gitignore

How-To Select in multi-selection interface

Opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
It took me a while to figure this out and I was this close to open a BugReport issue:

After running add-gitignore I couldn't select any option/"environment" like displayed in the demo.gif with the green "radio-button" dot.

I tried typing macos

 $ add-gitignore
? What environments would your .gitignore to ignore? macos
❯◯ macos

but by pressing Enter I just get prompt out with

? What environments would your .gitignore to ignore?
❯◯ macos
>> You must choose at least one environment to ignore.

suddenly:

  • no green dot
  • macos argument disappered

Luckily the solution I found out is just using spacebar to activate/deactivate the selection.

Describe the solution you'd like
That being said, it would be nice to have a small note in the README.md about the space interaction and it could be also nice, for the visual learners, to display the keypress in the gif too.

Describe alternatives you've considered
There could be even a little note in the message prompted by meow (something concisive like the [Y/n] option in many CLI tools for yes and no questions)

Beside that, I don't know if it could be a big twist to allow even commas , to do the same work of the whitespace to split the input of the multi-selection interface.

Additional context