ui

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

File cards.go renders session preview cards and their visual chrome.

File chrome.go defines UI chrome helpers such as search bars and headers.

File commands.go defines Bubble Tea command constructors for tmuxwatch.

File debug.go collects optional tracing helpers for mouse and layout data.

Package ui owns the Bubble Tea model and rendering logic for tmuxwatch.

File handlers.go groups input handling routines for keyboard and mouse events.

File layout.go contains helpers for sizing viewports and mapping mouse coordinates to cards.

File messages.go owns transient status/toast helpers that decorate the footer.

File model.go defines the core Bubble Tea model structure and shared constants that govern tmuxwatch behaviour.

File overlay.go blends base views with overlays such as the command palette.

File palette.go owns the lightweight command palette used to trigger common actions.

File sessions.go offers helpers for navigating through snapshot structures.

File stale.go encapsulates logic for detecting inactive or dead sessions.

File state.go manages tab state, detail navigation, and collapse toggles.

File status.go renders the status footer, stale indicators, and toast messages.

File update.go contains the Bubble Tea update loop and helper workflow that react to incoming messages.

File util.go collects small helpers that support layout and formatting.

File view.go orchestrates the final Bubble Tea view composition.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model owns the Bubble Tea state machine and cached tmux snapshot data.

func NewModel

func NewModel(client *tmux.Client, poll time.Duration, debugMsgs []tea.Msg, traceMouse bool) *Model

NewModel builds a Model with defaults and the provided tmux client.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init starts the initial tmux snapshot fetch and ticking loop.

func (*Model) Update

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

Update processes Bubble Tea messages and routes them to specialised handlers, returning the next command to execute.

func (*Model) View

func (m *Model) View() string

View renders the entire tmuxwatch interface, including title bar, search state, session previews, status footer, and overlays.

Jump to

Keyboard shortcuts

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