AlecAivazis / survey

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

feature request: allow customization of Select/MultiSelect help message #234

Closed ahmetb closed 5 years ago

ahmetb commented 5 years ago

Customizing this message would be nice:

[Use arrows to move, space to select, type to filter]
AlecAivazis commented 5 years ago

I'm curious what you would like to change it to? I have struggled for awhile with what these messages should say and you probably have a wide enough user base for something resembling user testing - have you had a chance to do anything like that?

I'm not sure if this level of fine-grain customizations make sure on a prompt-specific level 🤔

ahmetb commented 5 years ago

To me, mostly to unblock myself when the message is wrong. :)

Also could be for localization, but then it would need to apply to pretty much everything this library prompts for (errors, validations etc).

AlecAivazis commented 5 years ago

Yea I was thinking about localization too but that is a global configuration, not on a prompt level. I don't think adding this kind of configuration is a good idea.

You can always replace the contents of the template that the select uses. It's not a great API but since this is mostly for covering up bugs, I think that's fine.