faressoft / inquirer-checkbox-plus-prompt

Checkbox with autocomplete and other additions for Inquirer
MIT License
39 stars 25 forks source link

Show selected values #4

Open hongseokyoon opened 5 years ago

hongseokyoon commented 5 years ago

If source list is long, it's hard to recognize selected values. This change add selected value list in gray color just after the question string.

faressoft commented 5 years ago

Really nice idea. I like it.

It seems there is a simple bug to fix. Run example.js and check that the displayed text contains [[object Object], green, yellow]

It would be better to add an option to enable/disable this feature

Also it would be better to print the list without [ and ] to be consistent with the value that is printed after pressing enter.

hongseokyoon commented 5 years ago

I didn't remove brackets because of searchable option. Isn't it clear to distinguish selected values and search input?