ui

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitModified  = gitModified
	GitAdded     = gitAdded
	GitDeleted   = gitDeleted
	GitUntracked = gitUntracked
	GitIgnored   = gitIgnored
)

Exported git status constants for demo use.

Variables

This section is empty.

Functions

func ApplyTheme

func ApplyTheme(t *theme.Theme)

ApplyTheme sets the global color scheme and rebuilds all styles. Pass nil to use the default terminal-inherited colors.

Types

type Model

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

Model is the Bubble Tea model

func New

func New(rootPath string, cfg *config.Config) (Model, error)

New creates a new Model with the given config. If cfg is nil, defaults are used.

func NewDemo

func NewDemo(root *tree.Node, cfg *config.Config) Model

NewDemo creates a Model from a pre-built tree root for demo/WASM use. No filesystem or git access is performed.

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetGitInfo

func (m *Model) SetGitInfo(branch string, files map[string]gitFileStatus)

SetGitInfo sets the git branch and file status for demo display.

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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