ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package ui implements the Bubble Tea TUI for browsing and managing tmux sessions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachToSession

func AttachToSession(name string) error

AttachToSession switches to the target session. If already inside tmux, uses switch-client. Otherwise, uses attach-session.

Types

type Model

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

Model is the top-level Bubble Tea model for the session manager TUI.

func NewModel

func NewModel() Model

NewModel returns a new Model with default settings.

func (Model) AttachName

func (m Model) AttachName() string

AttachName returns the session to attach to (if any) after TUI exits

func (Model) Init

func (m Model) Init() tea.Cmd

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