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

[Feature] [#273] Improve select all and select none in multiselect prompt. #296

Closed chiaretto closed 3 years ago

chiaretto commented 3 years ago

What I did

Added support to select all items on multi select list pressing key right, and select none pressing key left

How to verify it

go run examples/longmulti.go

Press Key [right] to select all Press Key [left] to select none

Description for the changelog

Add feature select all and select none on multi select list

Issue Related:

https://github.com/AlecAivazis/survey/issues/273

Example

multi-select-all-none

henriquemoraes8 commented 3 years ago

This could really help us with our project

antonioolf commented 3 years ago

It's really a great feature

victor-schumacher commented 3 years ago

Such a nice feature

AlecAivazis commented 3 years ago

Hey @chiaretto! Thank you for submitting this.

The feature makes sense, the code looks good, there's a test, AND README CHANGES. What more could I ask for? I'm going to pull this down right now to make sure it works on my windows machine and then we'll merge it in.

AlecAivazis commented 3 years ago

Works like a charm! Thanks again :)

fabianofernandeszup commented 3 years ago

Thank you. I thank you for the excellent lib. I hope to be able to contribute more in the future. If you are interested, this is the opensource project that we use your lib. https://ritchiecli.io/