Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( StyleSidebarItem = lipgloss.NewStyle(). Padding(0, 1) StyleSidebarItemSelected = lipgloss.NewStyle(). Padding(0, 1). Background(colorHighlight). Foreground(lipgloss.AdaptiveColor{Light: "#FFFFFF", Dark: "#1E1E2E"}). Bold(true) )
var ( StyleDotStopped = lipgloss.NewStyle().Foreground(colorStopped) StyleDotStarting = lipgloss.NewStyle().Foreground(colorStarting) StyleDotRunning = lipgloss.NewStyle().Foreground(colorRunning) StyleDotReady = lipgloss.NewStyle().Foreground(colorReady) StyleDotCrashed = lipgloss.NewStyle().Foreground(colorCrashed) StyleDotRestarting = lipgloss.NewStyle().Foreground(colorRestarting) )
var ( // Subtle background tint on the cursor line when viewport is focused. // We avoid Foreground/Underline here because the line already carries ANSI // codes from applyHighlight — layering another fg style produces broken // escape sequences. Background-only is safe on pre-styled text. StyleCursorLine = lipgloss.NewStyle(). Background(lipgloss.AdaptiveColor{Light: "#DDEEFF", Dark: "#313244"}) // Stronger background for lines inside an active selection. StyleSelectedLine = lipgloss.NewStyle(). Background(lipgloss.AdaptiveColor{Light: "#CCE5FF", Dark: "#45475A"}) )
var ( StyleHelp = lipgloss.NewStyle(). Foreground(colorSubtle). Padding(0, 1) StyleHelpKey = lipgloss.NewStyle(). Foreground(colorHighlight). Bold(true) StyleHelpDesc = lipgloss.NewStyle(). Foreground(colorSubtle) )
var ( // StyleModal is the outer box of the worktree picker overlay. StyleModal = lipgloss.NewStyle(). BorderStyle(lipgloss.RoundedBorder()). BorderForeground(colorHighlight). Padding(0, 1) StyleModalTitle = lipgloss.NewStyle(). Bold(true). Foreground(colorHighlight). Padding(0, 1) StyleModalItem = lipgloss.NewStyle(). Padding(0, 1) StyleModalItemSelected = lipgloss.NewStyle(). Padding(0, 1). Background(colorHighlight). Foreground(lipgloss.AdaptiveColor{Light: "#FFFFFF", Dark: "#1E1E2E"}). Bold(true) StyleModalHint = lipgloss.NewStyle(). Foreground(colorSubtle). Padding(0, 1) )
Functions ¶
func HighlightStyle ¶
HighlightStyle returns a lipgloss Style that applies the named colour as a foreground. If the name is not in the palette map it is forwarded directly to lipgloss as a hex/ANSI colour string.
Types ¶
type KeyMap ¶
type KeyMap struct {
// ── Navigation ───────────────────────────────────────────────────────────
Up key.Binding
Down key.Binding
PageUp key.Binding
PageDown key.Binding
GotoTop key.Binding
GotoBottom key.Binding
// ── Pane focus ───────────────────────────────────────────────────────────
FocusNext key.Binding // Tab — cycle focus between sidebar / viewport
// ── Process control ──────────────────────────────────────────────────────
Start key.Binding // s — start focused process
Stop key.Binding // x — stop focused process
Restart key.Binding // r — restart focused process
Clear key.Binding // c — clear output buffer of focused process
// ── Worktree ─────────────────────────────────────────────────────────────
Worktree key.Binding // w — open worktree switcher
// ── Selection ────────────────────────────────────────────────────────────
Select key.Binding // v — enter/exit selection mode
Yank key.Binding // y — copy selected lines via OSC 52
Escape key.Binding // esc — cancel selection mode
// ── Search (later stage) ─────────────────────────────────────────────────
Search key.Binding // / — open search input
// ── Application ──────────────────────────────────────────────────────────
Quit key.Binding // q / ctrl+c
Help key.Binding // ? — toggle full help
}
KeyMap holds all keybinding definitions for lazyproc. Using bubbles/key so bindings integrate cleanly with the bubbles/help bar.
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
DefaultKeyMap returns the default production keybindings.
func (KeyMap) FullHelp ¶
FullHelp returns the full set of bindings shown when the user presses '?'. Implements the help.KeyMap interface from bubbles/help.
func (KeyMap) FullHelpVisual ¶
FullHelpVisual returns the full help layout used while in visual mode.
func (KeyMap) ShortHelpVisual ¶
ShortHelpVisual returns the condensed set of bindings shown in visual mode.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the root Bubbletea model for lazyproc.
func NewModel ¶
NewModel constructs the root model from a parsed config. It wires up state-change and output callbacks so the Bubbletea program receives messages from background goroutines via a shared channel.
type ProcessOutputMsg ¶
type ProcessOutputMsg struct {
ID string
Line process.OutputLine
}
ProcessOutputMsg is sent by the pipe-reader goroutine for each captured line.
type ProcessStateMsg ¶
ProcessStateMsg is sent whenever a process changes state.
type TermSizeMsg ¶
TermSizeMsg is sent on terminal resize.