mokkabonna / inquirer-autocomplete-prompt

Autocomplete prompt for inquirer
ISC License
350 stars 82 forks source link

Feature Request: support multiple choices #15

Closed yangchenyun closed 7 years ago

yangchenyun commented 8 years ago

It is common to select multiple items in 'choices'; an idea will be to modify the 'onSubmit' callback and distinguish between an action to pick current selected item and an action to continue to next prompt.

mokkabonna commented 7 years ago

This is better solved by a separate plugin

wclr commented 7 years ago

@mokkabonna Great plugin btw!

I wonder why, what is the problem of adding ability to do multiple choises?

wclr commented 7 years ago

Well I thought and it is probably really not so needed, you may implement multiple choises by asking multiple times to choose from autocomplete list, and in most scenarios it would be more appropriate then to choose from autocomplte matched options.

Though there maybe some cases for example implementing what files should be added to git stage/commit.