workspace

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityModel

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

ActivityModel renders the bottom activity pane.

func NewActivityModel

func NewActivityModel() ActivityModel

NewActivityModel creates a new workspace activity pane.

func (*ActivityModel) AppendContent

func (m *ActivityModel) AppendContent(content string)

AppendContent appends streamed content.

func (ActivityModel) BodyHeight

func (m ActivityModel) BodyHeight() int

BodyHeight returns the usable content height below the header and status line.

func (*ActivityModel) Clear

func (m *ActivityModel) Clear(title, status, content string)

Clear resets the pane to a placeholder.

func (ActivityModel) Height

func (m ActivityModel) Height() int

Height returns the current pane height.

func (*ActivityModel) SetContent

func (m *ActivityModel) SetContent(title, status, content string)

SetContent replaces the displayed content.

func (*ActivityModel) SetFocused

func (m *ActivityModel) SetFocused(focused bool)

SetFocused toggles focus styling.

func (*ActivityModel) SetSize

func (m *ActivityModel) SetSize(w, h int)

SetSize updates the viewport dimensions.

func (ActivityModel) Update

func (m ActivityModel) Update(msg tea.Msg) (ActivityModel, tea.Cmd)

Update handles pane-local navigation.

func (ActivityModel) View

func (m ActivityModel) View() string

View renders the activity pane.

func (ActivityModel) Width

func (m ActivityModel) Width() int

Width returns the current pane width.

type ContextModel

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

ContextModel renders the workspace summary pane.

func NewContextModel

func NewContextModel() ContextModel

NewContextModel creates a workspace context pane.

func (*ContextModel) SetContent

func (m *ContextModel) SetContent(title, subtitle string, lines []string)

SetContent replaces the pane content.

func (*ContextModel) SetEmptyMessage

func (m *ContextModel) SetEmptyMessage(message string)

SetEmptyMessage updates the empty-state message.

func (*ContextModel) SetFocused

func (m *ContextModel) SetFocused(focused bool)

SetFocused toggles focus styling.

func (*ContextModel) SetMode

func (m *ContextModel) SetMode(mode string)

SetMode updates the context header mode label.

func (*ContextModel) SetSize

func (m *ContextModel) SetSize(w, h int)

SetSize updates the pane dimensions.

func (ContextModel) Update

func (m ContextModel) Update(msg tea.Msg) (ContextModel, tea.Cmd)

Update handles pane-local navigation.

func (ContextModel) View

func (m ContextModel) View() string

View renders the context pane.

Jump to

Keyboard shortcuts

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