Inquirer.js icon indicating copy to clipboard operation
Inquirer.js copied to clipboard

[Feature request] Support description for choices

Open nliu-ms opened this issue 4 years ago • 3 comments

Hi there!

I noticed that only @inquirer/select support description for choices. Others like list/checkbox doesn't support it.

It seems that short value for choice can help. But this only shows after selecting, which may be too late for the user.

Do you have plan to add description for choices! That would be very helpful! Thank you!

nliu-ms avatar Jun 09 '21 06:06 nliu-ms

And it would be better if description can be the same line with the option, e.g. image

nliu-ms avatar Jun 09 '21 06:06 nliu-ms

@nliu-ms Maybe the solution in my duplicate issue could help you in the meantime. Not ideal, but at the same time, not that bad.

image

adrians5j avatar Jun 16 '21 08:06 adrians5j

This is something I'd prefer to keep in user land.

I'd recommend checking different text/table formatting modules on NPM. Then you should be able to use the output as the name of each choice.

SBoudrias avatar Jun 16 '21 16:06 SBoudrias