Versions in this module Expand all Collapse all v1 v1.0.0 Oct 7, 2026 Changes in this version + func Open(path string, done func(err error) tea.Msg) tea.Cmd + type Completion struct + Aliases []string + Description string + Name string + Run bool + type Editor struct + func New(commands func() []Completion, root func() string) *Editor + func (e *Editor) Clear() + func (e *Editor) Cursor() *tea.Cursor + func (e *Editor) Dismiss() bool + func (e *Editor) Empty() bool + func (e *Editor) Insert(text string) + func (e *Editor) Menu(width int) []string + func (e *Editor) SetAccent(c color.Color) + func (e *Editor) SetHistory(h *History) + func (e *Editor) SetSession(id string) + func (e *Editor) SetSuggestion(s string) + func (e *Editor) SetWidth(w int) + func (e *Editor) Update(msg tea.Msg) (cmd tea.Cmd, in *Input) + func (e *Editor) View(width int) string + type Error struct + Err error + type History struct + func NewHistory(path, project string) *History + func (h *History) Add(text string, pasted map[int]string) + func (h *History) Len() int + func (h *History) SetSession(id string) + type Input struct + Images []litellm.Block + Text string