tui

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App is the root Bubbletea model.

func NewApp

func NewApp(s *store.Store, projectsDir string) App

NewApp creates a new App model. projectsDir is the path to ~/.claude/projects.

func (App) Init

func (a App) Init() tea.Cmd

func (App) Update

func (a App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (App) View

func (a App) View() string

type CopyResultMsg

type CopyResultMsg struct{ Err error }

CopyResultMsg is sent after a clipboard copy attempt.

type ExportResultMsg added in v0.2.2

type ExportResultMsg struct {
	Err      error
	Filename string
	Count    int
}

ExportResultMsg is sent after an export completes.

type HistoryScanCompleteMsg

type HistoryScanCompleteMsg struct{ Count int }

HistoryScanCompleteMsg is sent when history.jsonl scanning finishes.

type ImportReadyMsg added in v0.2.2

type ImportReadyMsg struct {
	Err      error
	Manifest *transfer.Manifest
	Files    map[string][]byte
}

ImportReadyMsg is sent after reading an import bundle.

type ImportResultMsg added in v0.2.2

type ImportResultMsg struct {
	Err   error
	Count int
	Metas []*model.SessionMeta
}

ImportResultMsg is sent after placing imported sessions.

type ScanBatchMsg

type ScanBatchMsg struct {
	Scanned int
	Total   int
}

Messages from the scanner goroutine

type ScanCompleteMsg

type ScanCompleteMsg struct{}

ScanCompleteMsg is sent when the background scan finishes.

type Styles

type Styles struct {
	TabBar      lipgloss.Style
	TabActive   lipgloss.Style
	TabInactive lipgloss.Style
	StatusBar   lipgloss.Style
	Title       lipgloss.Style
	Subtitle    lipgloss.Style
	StatLabel   lipgloss.Style
	StatValue   lipgloss.Style
	Selected    lipgloss.Style
	ViewPort    lipgloss.Style
}

Styles holds pre-built lipgloss styles.

func NewStyles

func NewStyles(t Theme) Styles

NewStyles creates a Styles from a Theme.

type Theme

type Theme struct {
	Primary   string
	Secondary string
	Accent    string
	Muted     string
	Error     string
	Success   string
	Warning   string
	BgDark    string
	BgLight   string
	Fg        string
	FgDim     string
}

Theme holds the color palette for the TUI.

func DefaultTheme

func DefaultTheme() Theme

DefaultTheme returns the default color theme.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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