Documentation
¶
Overview ¶
Package ui provides the terminal user interface for pomodoro sessions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Keys = KeyMap{ Increase: key.NewBinding( key.WithKeys("k", "up"), key.WithHelp("↑", "+1 minute"), ), Reset: key.NewBinding( key.WithKeys("h", "left"), key.WithHelp("←", "reset"), ), Pause: key.NewBinding( key.WithKeys(" "), key.WithHelp("space", "pause/resume"), ), Skip: key.NewBinding( key.WithKeys("s"), key.WithHelp("s", "skip"), ), Quit: key.NewBinding( key.WithKeys("ctrl+c", "q"), key.WithHelp("q", "quit"), ), }
Functions ¶
This section is empty.
Types ¶
type ExitStatus ¶ added in v0.6.0
type ExitStatus byte
const ( Completed ExitStatus = iota Skipped Quit )
func (ExitStatus) String ¶ added in v0.6.0
func (e ExitStatus) String() string
type KeyMap ¶
type Model ¶
func (Model) ExitStatus ¶ added in v0.6.0
func (m Model) ExitStatus() ExitStatus
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 |
Click to show internal directories.
Click to hide internal directories.