tui

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config) error

Run starts the Bubbletea TUI application

Types

type FilterMode added in v0.2.0

type FilterMode int

FilterMode represents different filter options

const (
	FilterAll FilterMode = iota
	FilterDirty
	FilterClean
)

type Model

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

Model is the Bubbletea model for the TUI

func NewModel

func NewModel(cfg *config.Config) Model

NewModel creates a new TUI model

func (Model) GetFilterModeName added in v0.2.0

func (m Model) GetFilterModeName() string

GetFilterModeName returns the display name of current filter mode

func (Model) GetSelectedRepo added in v0.1.3

func (m Model) GetSelectedRepo() *model.Repo

GetSelectedRepo returns the currently selected repo

func (Model) GetSortModeName added in v0.1.3

func (m Model) GetSortModeName() string

GetSortModeName returns the display name of current sort mode

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model

func (Model) Update

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

Update handles messages and updates the model

func (Model) View

func (m Model) View() string

View renders the TUI

type PanelType added in v1.0.0

type PanelType int

PanelType represents which panel is currently active

const (
	PanelNone PanelType = iota
	PanelGrass
	PanelDisk
	PanelTimeline
)

type SortMode added in v0.1.3

type SortMode int

SortMode represents different sorting options

const (
	SortByDirty SortMode = iota
	SortByName
	SortByBranch
	SortByLastCommit
)

type State

type State int

State represents the current UI state

const (
	StateLoading State = iota
	StateReady
	StateError
	StateSearching
	StateWorkspaceSwitch
)

Jump to

Keyboard shortcuts

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