composer

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Composer

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

func New

func New() Composer

func (Composer) AtEnd

func (c Composer) AtEnd() bool

func (Composer) AtStart

func (c Composer) AtStart() bool

func (*Composer) CurrentPrefixedToken added in v0.1.20

func (c *Composer) CurrentPrefixedToken(prefix rune) (string, bool)

func (*Composer) HandleKey

func (c *Composer) HandleKey(msg tea.KeyMsg) bool

func (*Composer) HandlePaste added in v0.1.2

func (c *Composer) HandlePaste(value string)

func (Composer) Height

func (c Composer) Height() int

func (*Composer) InsertNewline

func (c *Composer) InsertNewline()

func (Composer) LineCount

func (c Composer) LineCount() int

func (*Composer) ReplaceCurrentPrefixedToken added in v0.1.20

func (c *Composer) ReplaceCurrentPrefixedToken(prefix rune, replacement string) bool

func (*Composer) Reset

func (c *Composer) Reset()

func (*Composer) SetCursorEnd

func (c *Composer) SetCursorEnd()

func (*Composer) SetValue

func (c *Composer) SetValue(value string)

func (*Composer) SetWidth

func (c *Composer) SetWidth(width int)

func (*Composer) Update

func (c *Composer) Update(msg tea.Msg) tea.Cmd

func (Composer) Value

func (c Composer) Value() string

func (Composer) View

func (c Composer) View() string

Jump to

Keyboard shortcuts

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