completion

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseMsg

type CloseMsg struct{}

type ClosedMsg

type ClosedMsg struct{}

type Item

type Item struct {
	Label       string
	Description string
	Value       string
	Execute     func() tea.Cmd
	Pinned      bool // Pinned items always appear at the top, in original order
}

type Manager

type Manager interface {
	layout.Model

	GetLayers() []*lipgloss.Layer
	Open() bool
	// SetEditorBottom sets the height from the bottom of the screen where the editor ends.
	// This is used to position the completion popup above the editor.
	SetEditorBottom(height int)
}

Manager manages the dialog stack and rendering

func New

func New() Manager

New creates a new completion component

type OpenMsg

type OpenMsg struct {
	Items []Item
}

type OpenedMsg

type OpenedMsg struct{}

type QueryMsg

type QueryMsg struct {
	Query string
}

type SelectedMsg

type SelectedMsg struct {
	Value   string
	Execute func() tea.Cmd
}

Jump to

Keyboard shortcuts

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