Documentation
¶
Index ¶
- func RefreshColors()
- type ChatLog
- func (cl *ChatLog) ClearDirty()
- func (cl *ChatLog) ClearSelection()
- func (cl *ChatLog) GetStyle() layout.Style
- func (cl *ChatLog) IsDirty() bool
- func (cl *ChatLog) Layout(x, y, w, h int)
- func (cl *ChatLog) MakeDirty()
- func (cl *ChatLog) MaxScrollOffset() int
- func (cl *ChatLog) MouseDown(x, y int) bool
- func (cl *ChatLog) MouseDrag(x, y int)
- func (cl *ChatLog) MouseUp(x, y int) string
- func (cl *ChatLog) Render(s *screen.Screen)
- func (cl *ChatLog) RenderSurface(s capabilities.Surface)
- func (cl *ChatLog) Scroll(delta int) bool
- func (cl *ChatLog) ScrollToBottom() bool
- func (cl *ChatLog) SetAiOutput(s string)
- func (cl *ChatLog) SetBackground(bg string)
- func (cl *ChatLog) SetMaxScrollObserver(fn func(int))
- func (cl *ChatLog) SetMessages(msgs []ChatMessage)
- func (cl *ChatLog) SetParent(p layout.Component)
- func (cl *ChatLog) SetScrollOffset(offset int)
- func (cl *ChatLog) SetStreaming(v bool)
- func (cl *ChatLog) SetStyle(s layout.Style)
- func (cl *ChatLog) SetThinkingVisibility(v ThinkingVisibility)
- func (cl *ChatLog) SetToolCallVisibility(v ToolCallVisibility)
- type ChatMessage
- type Cursor
- type CursorPos
- type DiffLog
- func (d *DiffLog) ClearDirty()
- func (d *DiffLog) ClearSelection()
- func (d *DiffLog) GetStyle() layout.Style
- func (d *DiffLog) IsDirty() bool
- func (d *DiffLog) Layout(x, y, w, h int)
- func (d *DiffLog) MakeDirty()
- func (d *DiffLog) MaxScrollOffset() int
- func (d *DiffLog) MouseDown(x, y int) bool
- func (d *DiffLog) MouseDrag(x, y int)
- func (d *DiffLog) MouseUp(x, y int) string
- func (d *DiffLog) Render(scr *screen.Screen)
- func (d *DiffLog) SetContent(content string)
- func (d *DiffLog) SetMaxScrollObserver(fn func(int))
- func (d *DiffLog) SetParent(p layout.Component)
- func (d *DiffLog) SetScrollOffset(offset int)
- func (d *DiffLog) SetStyle(st layout.Style)
- type Div
- func (d *Div) AlignItems(ai layout.AlignItems)
- func (d *Div) AppendChild(children layout.Component)
- func (d *Div) ClearDirty()
- func (d *Div) GetStyle() layout.Style
- func (d *Div) IsDirty() bool
- func (d *Div) JustifyContent(jc layout.JustifyContent)
- func (d *Div) Layout(x, y, w, h int)
- func (d *Div) MakeDirty()
- func (d *Div) Render(s *screen.Screen)
- func (d *Div) SetDirection(dir layout.Direction)
- func (d *Div) SetPadding(p layout.Padding)
- func (d *Div) SetParent(parent layout.Component)
- func (d *Div) SetSize(w, h layout.Unit)
- func (d *Div) SetStyle(style layout.Style)
- type Editor
- func (e *Editor) ClearDirty()
- func (e *Editor) ClearSelection()
- func (e *Editor) CursorScreenPos() (int, int)
- func (e *Editor) DeleteBackward()
- func (e *Editor) DeleteCurrentLine()
- func (e *Editor) DeleteForward()
- func (e *Editor) DeleteSelection()
- func (e *Editor) DeleteWordBackward()
- func (e *Editor) DeleteWordForward()
- func (e *Editor) GetContent() string
- func (e *Editor) GetStyle() layout.Style
- func (e *Editor) HasSelection() bool
- func (e *Editor) InsertNewline()
- func (e *Editor) InsertRune(r rune)
- func (e *Editor) InsertString(s string)
- func (e *Editor) IsDirty() bool
- func (e *Editor) IsMultiline() bool
- func (e *Editor) IsPoint(x, y int) bool
- func (e *Editor) LastCursorUpdate(nextRow []rune) uint
- func (e *Editor) Layout(x, y, w, h int)
- func (e *Editor) MakeDirty()
- func (e *Editor) MouseDown(x, y int) bool
- func (e *Editor) MouseDrag(x, y int) bool
- func (e *Editor) MouseUp(x, y int) bool
- func (e *Editor) MoveCursorDown()
- func (e *Editor) MoveCursorEnd()
- func (e *Editor) MoveCursorHome()
- func (e *Editor) MoveCursorLeft()
- func (e *Editor) MoveCursorRight()
- func (e *Editor) MoveCursorUp()
- func (e *Editor) MoveWordLeft()
- func (e *Editor) MoveWordRight()
- func (e *Editor) Render(s *screen.Screen)
- func (e *Editor) RevealCursor()
- func (e *Editor) Scroll(delta int) bool
- func (e *Editor) ScrollBottom() bool
- func (e *Editor) ScrollPage(direction int) bool
- func (e *Editor) ScrollTop() bool
- func (e *Editor) SelectAll()
- func (e *Editor) SelectDown()
- func (e *Editor) SelectEnd()
- func (e *Editor) SelectHome()
- func (e *Editor) SelectLeft()
- func (e *Editor) SelectRight()
- func (e *Editor) SelectUp()
- func (e *Editor) SelectWordLeft()
- func (e *Editor) SelectWordRight()
- func (e *Editor) SelectedText() string
- func (e *Editor) SetContent(s string)
- func (e *Editor) SetMultiline(v bool)
- func (e *Editor) SetParent(p layout.Component)
- func (e *Editor) SetStyle(s layout.Style)
- func (e *Editor) Undo() bool
- type InfoTab
- type InfoTabs
- func (t *InfoTabs) ClearDirty()
- func (t *InfoTabs) GetStyle() layout.Style
- func (t *InfoTabs) IsDirty() bool
- func (t *InfoTabs) Layout(x, y, w, h int)
- func (t *InfoTabs) MakeDirty()
- func (t *InfoTabs) Render(scr *screen.Screen)
- func (t *InfoTabs) SetParent(p layout.Component)
- func (t *InfoTabs) SetStyle(st layout.Style)
- func (t *InfoTabs) SetTabs(tabs []InfoTab)
- type InputBox
- func (b *InputBox) ClearDirty()
- func (b *InputBox) GetStyle() layout.Style
- func (b *InputBox) IsDirty() bool
- func (b *InputBox) Layout(x, y, w, h int)
- func (b *InputBox) MakeDirty()
- func (b *InputBox) Render(s *screen.Screen)
- func (b *InputBox) SetParent(p layout.Component)
- func (b *InputBox) SetStatus(s string)
- func (b *InputBox) SetStatusSegments(segs []StatusSegment)
- func (b *InputBox) SetStyle(s layout.Style)
- type Popup
- func (p *Popup) ClearDirty()
- func (p *Popup) GetStyle() layout.Style
- func (p *Popup) IsDirty() bool
- func (p *Popup) Layout(x, y, w, h int)
- func (p *Popup) MakeDirty()
- func (p *Popup) Render(s *screen.Screen)
- func (p *Popup) SetItems(items []PopupItem, active int)
- func (p *Popup) SetPanel(panel bool)
- func (p *Popup) SetParent(parent layout.Component)
- func (p *Popup) SetQuery(query string)
- func (p *Popup) SetTitle(title string)
- type PopupItem
- type Separator
- func (s *Separator) ClearDirty()
- func (s *Separator) GetStyle() layout.Style
- func (s *Separator) IsDirty() bool
- func (s *Separator) Layout(x, y, w, h int)
- func (s *Separator) MakeDirty()
- func (s *Separator) Render(scr *screen.Screen)
- func (s *Separator) SetParent(p layout.Component)
- func (s *Separator) SetStatus(serverStarting, serverReady, aiThinking bool)
- func (s *Separator) SetStyle(st layout.Style)
- type SessionItem
- type SessionMouseAction
- type Sessions
- func (s *Sessions) ClearDirty()
- func (s *Sessions) Contains(x, y int) bool
- func (s *Sessions) GetStyle() layout.Style
- func (s *Sessions) IsDirty() bool
- func (s *Sessions) Layout(x, y, w, h int)
- func (s *Sessions) MakeDirty()
- func (s *Sessions) MouseDown(x, y int) (SessionMouseAction, string, bool)
- func (s *Sessions) Render(scr *screen.Screen)
- func (s *Sessions) Scroll(delta int) bool
- func (s *Sessions) SetItems(items []SessionItem)
- func (s *Sessions) SetOrientation(orientation SessionsOrientation)
- func (s *Sessions) SetParent(p layout.Component)
- func (s *Sessions) SetStyle(st layout.Style)
- type SessionsOrientation
- type StatusBar
- func (s *StatusBar) ClearDirty()
- func (s *StatusBar) GetStyle() layout.Style
- func (s *StatusBar) IsDirty() bool
- func (s *StatusBar) Layout(x, y, w, h int)
- func (s *StatusBar) MakeDirty()
- func (s *StatusBar) Render(scr *screen.Screen)
- func (s *StatusBar) SetMode(mode string)
- func (s *StatusBar) SetModel(providerID, modelID string)
- func (s *StatusBar) SetParent(p layout.Component)
- func (s *StatusBar) SetSession(title string)
- func (s *StatusBar) SetShowSession(v bool)
- func (s *StatusBar) SetStatus(serverStarting, serverReady, aiThinking bool)
- func (s *StatusBar) SetStyle(st layout.Style)
- type StatusSegment
- type Text
- type ThinkingVisibility
- type ToolCallVisibility
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RefreshColors ¶
func RefreshColors()
RefreshColors recomputes every component's cached colours from the current theme palette. Call it after theme.Apply.
Types ¶
type ChatLog ¶
type ChatLog struct {
// contains filtered or unexported fields
}
func NewChatLog ¶
func NewChatLog() *ChatLog
func (*ChatLog) ClearDirty ¶
func (cl *ChatLog) ClearDirty()
func (*ChatLog) ClearSelection ¶
func (cl *ChatLog) ClearSelection()
func (*ChatLog) MaxScrollOffset ¶
func (*ChatLog) Render ¶
Render satisfies layout.Component; it delegates to the public Surface path so the chatlog renders identically whether driven by the internal layout engine or a public component over capabilities.Surface.
func (*ChatLog) RenderSurface ¶
func (cl *ChatLog) RenderSurface(s capabilities.Surface)
RenderSurface draws the chatlog using only the public Surface primitives.
func (*ChatLog) Scroll ¶
Scroll adjusts the offset (distance from the bottom) by delta, clamped to the content height. It satisfies plums.Scrollable so a public component can own its own scroll state. Returns whether the offset changed.
func (*ChatLog) ScrollToBottom ¶
ScrollToBottom returns to the newest output (offset 0).
func (*ChatLog) SetAiOutput ¶
func (*ChatLog) SetBackground ¶
SetBackground sets the pane background used when the chatlog is driven as a public component (which has no layout parent to inherit from).
func (*ChatLog) SetMaxScrollObserver ¶
func (*ChatLog) SetMessages ¶
func (cl *ChatLog) SetMessages(msgs []ChatMessage)
func (*ChatLog) SetScrollOffset ¶
func (*ChatLog) SetStreaming ¶
func (*ChatLog) SetThinkingVisibility ¶
func (cl *ChatLog) SetThinkingVisibility(v ThinkingVisibility)
func (*ChatLog) SetToolCallVisibility ¶
func (cl *ChatLog) SetToolCallVisibility(v ToolCallVisibility)
type ChatMessage ¶
type DiffLog ¶
type DiffLog struct {
// contains filtered or unexported fields
}
func NewDiffLog ¶
func NewDiffLog() *DiffLog
func (*DiffLog) ClearDirty ¶
func (d *DiffLog) ClearDirty()
func (*DiffLog) ClearSelection ¶
func (d *DiffLog) ClearSelection()
func (*DiffLog) MaxScrollOffset ¶
func (*DiffLog) SetContent ¶
func (*DiffLog) SetMaxScrollObserver ¶
func (*DiffLog) SetScrollOffset ¶
type Div ¶
func (*Div) AlignItems ¶
func (d *Div) AlignItems(ai layout.AlignItems)
func (*Div) AppendChild ¶
func (*Div) ClearDirty ¶
func (d *Div) ClearDirty()
func (*Div) JustifyContent ¶
func (d *Div) JustifyContent(jc layout.JustifyContent)
func (*Div) SetDirection ¶
func (*Div) SetPadding ¶
type Editor ¶
func NewTextEditor ¶
func NewTextEditor() *Editor
func (*Editor) ClearDirty ¶
func (e *Editor) ClearDirty()
func (*Editor) ClearSelection ¶
func (e *Editor) ClearSelection()
func (*Editor) CursorScreenPos ¶
func (*Editor) DeleteBackward ¶
func (e *Editor) DeleteBackward()
func (*Editor) DeleteCurrentLine ¶
func (e *Editor) DeleteCurrentLine()
func (*Editor) DeleteForward ¶
func (e *Editor) DeleteForward()
func (*Editor) DeleteSelection ¶
func (e *Editor) DeleteSelection()
func (*Editor) DeleteWordBackward ¶
func (e *Editor) DeleteWordBackward()
func (*Editor) DeleteWordForward ¶
func (e *Editor) DeleteWordForward()
func (*Editor) GetContent ¶
func (*Editor) HasSelection ¶
func (*Editor) InsertNewline ¶
func (e *Editor) InsertNewline()
func (*Editor) InsertRune ¶
func (*Editor) InsertString ¶
func (*Editor) IsMultiline ¶
func (*Editor) LastCursorUpdate ¶
func (*Editor) MoveCursorDown ¶
func (e *Editor) MoveCursorDown()
func (*Editor) MoveCursorEnd ¶
func (e *Editor) MoveCursorEnd()
func (*Editor) MoveCursorHome ¶
func (e *Editor) MoveCursorHome()
func (*Editor) MoveCursorLeft ¶
func (e *Editor) MoveCursorLeft()
func (*Editor) MoveCursorRight ¶
func (e *Editor) MoveCursorRight()
func (*Editor) MoveCursorUp ¶
func (e *Editor) MoveCursorUp()
func (*Editor) MoveWordLeft ¶
func (e *Editor) MoveWordLeft()
func (*Editor) MoveWordRight ¶
func (e *Editor) MoveWordRight()
func (*Editor) RevealCursor ¶
func (e *Editor) RevealCursor()
func (*Editor) ScrollBottom ¶
func (*Editor) ScrollPage ¶
func (*Editor) SelectDown ¶
func (e *Editor) SelectDown()
func (*Editor) SelectHome ¶
func (e *Editor) SelectHome()
func (*Editor) SelectLeft ¶
func (e *Editor) SelectLeft()
func (*Editor) SelectRight ¶
func (e *Editor) SelectRight()
func (*Editor) SelectWordLeft ¶
func (e *Editor) SelectWordLeft()
func (*Editor) SelectWordRight ¶
func (e *Editor) SelectWordRight()
func (*Editor) SelectedText ¶
func (*Editor) SetContent ¶
func (*Editor) SetMultiline ¶
type InfoTabs ¶
type InfoTabs struct {
// contains filtered or unexported fields
}
func NewInfoTabs ¶
func NewInfoTabs() *InfoTabs
func (*InfoTabs) ClearDirty ¶
func (t *InfoTabs) ClearDirty()
type InputBox ¶
type InputBox struct {
// contains filtered or unexported fields
}
func NewInputBox ¶
func (*InputBox) ClearDirty ¶
func (b *InputBox) ClearDirty()
func (*InputBox) SetStatusSegments ¶
func (b *InputBox) SetStatusSegments(segs []StatusSegment)
type Popup ¶
type Popup struct {
// contains filtered or unexported fields
}
func (*Popup) ClearDirty ¶
func (p *Popup) ClearDirty()
type Separator ¶
type Separator struct {
// contains filtered or unexported fields
}
func NewSeparator ¶
func NewSeparator() *Separator
func (*Separator) ClearDirty ¶
func (s *Separator) ClearDirty()
type SessionItem ¶
type SessionMouseAction ¶
type SessionMouseAction int
const ( SessionMouseNone SessionMouseAction = iota SessionMouseNew SessionMouseSelect )
type Sessions ¶
type Sessions struct {
// contains filtered or unexported fields
}
func NewSessions ¶
func NewSessions(orientation SessionsOrientation) *Sessions
func (*Sessions) ClearDirty ¶
func (s *Sessions) ClearDirty()
func (*Sessions) MouseDown ¶
func (s *Sessions) MouseDown(x, y int) (SessionMouseAction, string, bool)
func (*Sessions) SetItems ¶
func (s *Sessions) SetItems(items []SessionItem)
func (*Sessions) SetOrientation ¶
func (s *Sessions) SetOrientation(orientation SessionsOrientation)
type SessionsOrientation ¶
type SessionsOrientation int
const ( SessionsVertical SessionsOrientation = iota SessionsHorizontal )
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
func NewStatusBar ¶
func NewStatusBar() *StatusBar
func (*StatusBar) ClearDirty ¶
func (s *StatusBar) ClearDirty()
func (*StatusBar) SetSession ¶
func (*StatusBar) SetShowSession ¶
type StatusSegment ¶
StatusSegment is one coloured fragment of the status line shown above the input panel. An empty Fg falls back to the default faint status colour.
type Text ¶
type Text struct {
// contains filtered or unexported fields
}
func (*Text) ClearDirty ¶
func (t *Text) ClearDirty()
func (*Text) SetContent ¶
type ThinkingVisibility ¶
type ThinkingVisibility int
const ( ThinkingVisibilityFull ThinkingVisibility = iota ThinkingVisibilityTitle ThinkingVisibilityHidden )
type ToolCallVisibility ¶
type ToolCallVisibility int
const ( ToolCallVisibilityFull ToolCallVisibility = iota ToolCallVisibilityCollapse ToolCallVisibilityHidden )