Skip to content

Commit

Permalink
textarea: add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
knz authored and maaslalani committed Sep 2, 2022
1 parent db2a8b4 commit c099d31
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions textarea/textarea.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,23 @@ type Model struct {
Err error

// General settings.
Prompt string
Placeholder string
ShowLineNumbers bool

// 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 KeyMap

// KeyMap encodes the keybindings recognized by the widget.
KeyMap KeyMap

// Styling. FocusedStyle and BlurredStyle are used to style the textarea in
// focused and blurred states.
Expand Down

0 comments on commit c099d31

Please sign in to comment.