Closed dnutels closed 1 month ago
You can use the short
to provide shorter choice option to display in the list. There's not support for fully customized function to change the output.
Thank you.
This, unfortunately, is rather unsatisfactory, as the values of short
are joined, resulting in(when short
is _
, for example):
_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _
Would you accept a PR for this? Like, in a couple of days?
Is there solution for this in current version? I want to prevent printing result of selection
+1 for this feature!
I'm using a "checkbox" type prompt to select/deselect a list of files (showing their shortened paths) and when the results show up in the blueish color, it just looks ugly to have them listed in one long running results.join(', ')
line.
Since I get the results back, I'd much rather control the output in a subsequent call to console.log(...)
myself.
Is there any work or at least plans to have a way to disable the result output that's automatically spit out by inquirer?
This can be now be done with customizing theme.style.renderSelectedChoices
of the checkbox prompt.
Currently, with the following
when a user selects any combination (all in the screenshot below):
the choices are printed to the terminal, with no ability to impact that process (that I could find).
In cases where the list is fairly long (and the choices are long), this creates an unsightly block of text.
Can we add a formatter function:
so that the decision what to print and how to format it is in userland?
Thank you.