ui

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 15 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, asciiArt config.ASCIIArt, askToContinue bool) 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

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
	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 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