Documentation ¶
Index ¶
- Variables
- type KeyMap
- type Model
- func (m Model) Data() string
- func (m Model) DataString() string
- func (m Model) Error() error
- func (m Model) Init() tea.Cmd
- func (m Model) KeyBindings() []key.Binding
- func (m Model) Quitting() bool
- func (m Model) TeaProgramOpts() []tea.ProgramOption
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) UseKeyEnter() bool
- func (m Model) UseKeyQ() bool
- func (m Model) View() string
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeyMap = KeyMap{ Confirm: key.NewBinding( key.WithKeys("ctrl+d"), key.WithHelp("ctrl+d", "confirm"), ), Quit: key.NewBinding( key.WithKeys("esc", "ctrl+c"), key.WithHelp("esc", "quit"), ), }
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (Model) DataString ¶
func (Model) KeyBindings ¶
func (Model) TeaProgramOpts ¶ added in v0.8.4
func (m Model) TeaProgramOpts() []tea.ProgramOption
func (Model) UseKeyEnter ¶
type Option ¶ added in v0.8.0
type Option func(*Model)
func WithCharLimit ¶ added in v0.8.2
Default is 400. https://github.com/charmbracelet/bubbles/blob/master/textarea/textarea.go#L23
func WithKeyMap ¶ added in v0.8.1
func WithLineNumbers ¶ added in v0.8.3
func WithTeaProgramOpts ¶ added in v0.8.4
func WithTeaProgramOpts(opts ...tea.ProgramOption) Option
Click to show internal directories.
Click to hide internal directories.