AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.08k stars 351 forks source link

Preselection of multiSelect #259

Closed francois-pasquier closed 4 years ago

francois-pasquier commented 4 years ago

Is it possible to give an array of selected items to survey ? Is it supposed to be shown as checked item ?

AlecAivazis commented 4 years ago

1) Unforunately not. This has been a long running discussion among the survey maintainers and its not clear the right API to support this. For more information you can see #105. I know this isn't the answer you wanted but for now its the best I can provide at the moment. 2) You can change the icon set by following these instructions.

ChristianHuff-DEV commented 4 years ago

@AlecAivazis is there a way to keep the selected items if the validation returns an error?

Currently when my validation fails even previously selected items are back to being not selected.