ui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package ui provides the terminal user interface for pomodoro sessions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	Increase key.Binding
	Reset    key.Binding
	Pause    key.Binding
	Skip     key.Binding
	Quit     key.Binding
}

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

type Model

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

func NewModel

func NewModel(taskType config.TaskType, cfg config.Config) Model

func (Model) GetSessionSummary added in v0.8.1

func (m Model) GetSessionSummary() summary.SessionSummary

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Quit added in v0.8.1

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

Quit handles quitting the application ensuring that any running post actions are completed before exiting

func (Model) Update

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

func (Model) View

func (m Model) View() string

type SessionState added in v0.8.1

type SessionState byte
const (
	Running SessionState = iota
	Paused
	ShowingConfirm
	WaitingForCommands // waiting for post commands before quitting
	Quitting
)

Directories

Path Synopsis
Package ascii provides ASCII art style.
Package ascii provides ASCII art style.
Package colors defines color constants for UI elements.
Package colors defines color constants for UI elements.
Package confirm provides a simple confirmation dialog component
Package confirm provides a simple confirmation dialog component
Package stats implements the statistics view for pomo.
Package stats implements the statistics view for pomo.
components
Package components implements UI components for stats.
Package components implements UI components for stats.
Package summary tracks pomodoro sessions and renders visual summary with progress bar.
Package summary tracks pomodoro sessions and renders visual summary with progress bar.

Jump to

Keyboard shortcuts

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