Documentation
¶
Index ¶
- type AIPanel
- func (p AIPanel) AppendContent(chunk string) AIPanel
- func (p AIPanel) Hide() AIPanel
- func (p AIPanel) IsVisible() bool
- func (p AIPanel) Render(width, height int) string
- func (p AIPanel) ScrollDown() AIPanel
- func (p AIPanel) ScrollUp() AIPanel
- func (p AIPanel) SetDone() AIPanel
- func (p AIPanel) SetError(err string) AIPanel
- func (p AIPanel) SetSize(width, height int) AIPanel
- func (p AIPanel) Show(title string) AIPanel
- type CommandBar
- type ContentBorder
- type Header
- type StatusBar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIPanel ¶
type AIPanel struct {
// contains filtered or unexported fields
}
AIPanel renders a floating overlay panel with AI-generated content.
func (AIPanel) AppendContent ¶
AppendContent adds streaming content to the panel.
func (AIPanel) ScrollDown ¶
ScrollDown scrolls the panel content down.
type CommandBar ¶
type CommandBar struct{}
CommandBar renders a bordered command input box for `:` command mode.
func NewCommandBar ¶
func NewCommandBar() CommandBar
NewCommandBar creates a new command bar component.
type ContentBorder ¶
type ContentBorder struct{}
ContentBorder renders content in a rounded border box with a title and optional item count embedded in the top border line.
func NewContentBorder ¶
func NewContentBorder() ContentBorder
NewContentBorder creates a new content border component.
func (ContentBorder) Render ¶
func (c ContentBorder) Render(content, title string, filtered, total, pinned, cursor, navigable, width, height int) string
Render wraps content in a bordered box with title in the top border. If filtered != total, shows "(filtered/total)". If equal and > 0, shows "(total)". If pinned > 0, appends a pin icon with count. If navigable > 0, appends "cursor/navigable" position counter. Width is the outer box width. Height is the outer box height (including borders).
type Header ¶
type Header struct {
// contains filtered or unexported fields
}
Header renders a 3-line info block with project, chdir, workspace on the left, and an ASCII logo on the right.
func (Header) WithLockInfo ¶ added in v1.5.0
WithLockInfo returns a copy with the lock indicator set (nil to clear).
func (Header) WithPinnedCount ¶
WithPinnedCount returns a copy with the pinned targets count.
func (Header) WithWorkspace ¶ added in v1.5.0
WithWorkspace returns a copy with the workspace updated.
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
func NewStatusBar ¶
func NewStatusBar() StatusBar
func (StatusBar) RenderHints ¶
RenderHints formats a slice of KeyHint into a styled status bar string.
func (StatusBar) WithBinaryName ¶
WithBinaryName returns a StatusBar that displays the binary name right-aligned.
func (StatusBar) WithShortcuts ¶
WithShortcuts returns a StatusBar that displays the given shortcut hints.