panes

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const InitializingMsg = "Components initializing ..."
View Source
const NoTargetSession = -1
View Source
const PlaceholderMsg = "Press i to type • ctrl+e expand/collapse editor • ctrl+r clear"
View Source
const ResponseWaitingMsg = "> Please wait ..."

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatPane

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

func NewChatPane

func NewChatPane(ctx context.Context, w, h int) ChatPane

func (ChatPane) AllowFocusChange

func (p ChatPane) AllowFocusChange(isMouseEvent bool) bool

func (*ChatPane) Cancel added in v0.8.0

func (p *ChatPane) Cancel()

func (*ChatPane) DisplayCompletion

func (p *ChatPane) DisplayCompletion(
	ctx context.Context,
	orchestrator *sessions.Orchestrator,
) tea.Cmd

func (ChatPane) DisplayError

func (p ChatPane) DisplayError(error string) string

func (ChatPane) GetWidth

func (p ChatPane) GetWidth() int

func (ChatPane) Init

func (p ChatPane) Init() tea.Cmd

func (ChatPane) IsSelectionMode

func (p ChatPane) IsSelectionMode() bool

func (*ChatPane) ResumeCompletion added in v0.8.0

func (p *ChatPane) ResumeCompletion(
	ctx context.Context,
	orchestrator *sessions.Orchestrator,
) tea.Cmd

func (ChatPane) SetPaneHeight

func (p ChatPane) SetPaneHeight(h int)

func (ChatPane) SetPaneWitdth

func (p ChatPane) SetPaneWitdth(w int)

func (ChatPane) Update

func (p ChatPane) Update(msg tea.Msg) (ChatPane, tea.Cmd)

func (ChatPane) View

func (p ChatPane) View() string

type InfoPane

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

func NewInfoPane

func NewInfoPane(db *sql.DB, ctx context.Context) InfoPane

func (InfoPane) Init

func (p InfoPane) Init() tea.Cmd

func (InfoPane) Update

func (p InfoPane) Update(msg tea.Msg) (InfoPane, tea.Cmd)

func (InfoPane) View

func (p InfoPane) View() string

type PromptPane

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

func NewPromptPane

func NewPromptPane(ctx context.Context) PromptPane

func (PromptPane) AllowFocusChange

func (p PromptPane) AllowFocusChange(isMouseEvent bool) bool

func (PromptPane) Enable

func (p PromptPane) Enable() PromptPane

func (PromptPane) Init

func (p PromptPane) Init() tea.Cmd

func (PromptPane) Update

func (p PromptPane) Update(msg tea.Msg) (PromptPane, tea.Cmd)

func (PromptPane) View

func (p PromptPane) View() string

type SessionsPane

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

func NewSessionsPane

func NewSessionsPane(db *sql.DB, ctx context.Context) SessionsPane

func (SessionsPane) AllowFocusChange

func (p SessionsPane) AllowFocusChange(isMouseEvent bool) bool

func (SessionsPane) Init

func (p SessionsPane) Init() tea.Cmd

func (SessionsPane) Update

func (p SessionsPane) Update(msg tea.Msg) (SessionsPane, tea.Cmd)

func (SessionsPane) View

func (p SessionsPane) View() string

type SettingsPane

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

func NewSettingsPane

func NewSettingsPane(db *sql.DB, ctx context.Context) SettingsPane

func (SettingsPane) AllowFocusChange

func (p SettingsPane) AllowFocusChange(isMouseEvent bool) bool

func (*SettingsPane) Init

func (p *SettingsPane) Init() tea.Cmd

func (SettingsPane) Update

func (p SettingsPane) Update(msg tea.Msg) (SettingsPane, tea.Cmd)

func (SettingsPane) View

func (p SettingsPane) View() string

Jump to

Keyboard shortcuts

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