textarea: add some comments

This commit is contained in:
Raphael 'kena' Poss 2022-08-25 17:00:24 +02:00 committed by Maas Lalani
parent db2a8b4e16
commit c099d31570

View File

@ -133,10 +133,22 @@ type Model struct {
Err error
// General settings.
// Prompt is printed at the beginning of each line.
Prompt string
// Placeholder is the text displayed when the user
// hasn't entered anything yet.
Placeholder string
// ShowLineNumbers, if enabled, causes line numbers to be printed
// after the prompt.
ShowLineNumbers bool
// EndOfBufferCharacter is displayed at the end of the input.
EndOfBufferCharacter rune
// KeyMap encodes the keybindings recognized by the widget.
KeyMap KeyMap
// Styling. FocusedStyle and BlurredStyle are used to style the textarea in