AlecAivazis / survey

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

not selected / out of focus icon option #371

Closed quiquelhappy closed 2 years ago

quiquelhappy commented 2 years ago

Hello, I think I'd be great if there was an unselected / out of focus icon option option icon, as there is only an option for SelectFocus right now

quiquelhappy commented 2 years ago

image The goal would be to have this instead:

  ?  Choose a color:  [Use arrows to move, type to filter]
  ◦  red
  •  blue
  ◦  green
mislav commented 2 years ago

Thanks for the suggestion! I don't think this is something that we'll provide in Survey since it would make the implementation more complex but I don't believe it would be widely used.

You could override the SelectQuestionTemplate in your application to achieve what you wish. Just copy over the template string from this repository and tweak it with your own rendering preferences.