editor

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentPreview added in v1.14.0

type AttachmentPreview struct {
	Title   string
	Content string
}

AttachmentPreview describes an attachment and its contents for dialog display.

type Editor

type Editor interface {
	layout.Model
	layout.Sizeable
	layout.Focusable
	SetWorking(working bool) tea.Cmd
	AcceptSuggestion() bool
	// Value returns the current editor content
	Value() string
	// SetValue updates the editor content
	SetValue(content string)
	Cleanup()
	GetSize() (width, height int)
	BannerHeight() int
	AttachmentAt(x int) (AttachmentPreview, bool)
}

Editor represents an input editor component

func New

func New(a *app.App, hist *history.History) Editor

New creates a new editor component

type SendMsg

type SendMsg struct {
	Content     string            // Full content sent to the agent (with file contents expanded)
	Attachments map[string]string // Map of filename to content for attachments
}

SendMsg represents a message to send

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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