Closed robertzhangwenjie closed 1 year ago
Hi, thank you for the feature request, but adding a character count to a text input is highly application-specific and I feel that it doesn't belong in this library. What you can do is make your own custom component, i.e. copy the Multiline component into your app and customize it there with the UI of your choice. Survey library will accept any object as long as it implements Prompt.
Now, i am using this library to implement a git commit message generator. Although i can control the max length of prompt, i would like to have a feature that can display the number of characters entered and can wrap lines automatically according to width。
The example below demonstrates this feature. https://github.com/JosephNaberhaus/go-mitizen/blob/56f603fd666f72f69563a31175513f2a281f6334/meta/commit.gif