Documentation
¶
Index ¶
- Constants
- type ChatPane
- func (p ChatPane) AllowFocusChange(isMouseEvent bool) bool
- func (p *ChatPane) Cancel()
- func (p *ChatPane) DisplayCompletion(ctx context.Context, orchestrator *sessions.Orchestrator) tea.Cmd
- func (p ChatPane) DisplayError(error string) string
- func (p ChatPane) GetWidth() int
- func (p ChatPane) Init() tea.Cmd
- func (p ChatPane) IsSelectionMode() bool
- func (p *ChatPane) ResumeCompletion(ctx context.Context, orchestrator *sessions.Orchestrator) tea.Cmd
- func (p ChatPane) SetPaneHeight(h int)
- func (p ChatPane) SetPaneWitdth(w int)
- func (p ChatPane) Update(msg tea.Msg) (ChatPane, tea.Cmd)
- func (p ChatPane) View() string
- type InfoPane
- type PromptPane
- type SessionsPane
- type SettingsPane
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 (ChatPane) AllowFocusChange ¶
func (*ChatPane) DisplayCompletion ¶
func (ChatPane) DisplayError ¶
func (ChatPane) IsSelectionMode ¶
func (*ChatPane) ResumeCompletion ¶ added in v0.8.0
func (ChatPane) SetPaneHeight ¶
func (ChatPane) SetPaneWitdth ¶
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
Click to show internal directories.
Click to hide internal directories.