inputbar

package
v1.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model handles user input via a textarea.

func New

func New(user *auth.User, theme styles.Theme, scope log.Scope) *Model

New creates a new input bar.

func (*Model) Blur

func (m *Model) Blur()

Blur removes focus from the textarea.

func (*Model) Focus

func (m *Model) Focus() tea.Cmd

Focus returns a command to focus the textarea.

func (*Model) Focused

func (m *Model) Focused() bool

Focused returns whether the textarea is focused.

func (*Model) Height

func (m *Model) Height() int

Height returns the height of the input bar.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init initializes the input bar.

func (*Model) SetWidth

func (m *Model) SetWidth(width int)

SetWidth sets the width.

func (*Model) ShortHelp

func (m *Model) ShortHelp() []key.Binding

ShortHelp returns the key bindings for the short help view.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) tea.Cmd

Update handles messages.

func (*Model) View

func (m *Model) View() string

View renders the input bar.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL