stats

package
v0.0.0-...-a79dd35 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package stats implements the statistics view for pomo.

Index

Constants

This section is empty.

Variables

View Source
var ConfirmDeleteKeys = KeyMap{
	Confirm: Keys.Confirm,
	Cancel:  Keys.Cancel,
	NextTab: key.NewBinding(
		key.WithKeys("tab", "left", "right", "h", "l"),
		key.WithHelp("tab", "toggle"),
	),
	Toggle: key.NewBinding(
		key.WithKeys("enter"),
		key.WithHelp("enter", "submit"),
	),
	Quit: Keys.Quit,
}
View Source
var EditTitleKeys = KeyMap{
	Toggle: key.NewBinding(
		key.WithKeys("enter"),
		key.WithHelp("enter", "save"),
	),
	Cancel: key.NewBinding(
		key.WithKeys("esc"),
		key.WithHelp("esc", "cancel"),
	),
}
View Source
var GroupedKeys = KeyMap{
	NextTab: Keys.NextTab,
	Up:      Keys.Up,
	Down:    Keys.Down,
	Toggle:  Keys.Toggle,
	Edit:    Keys.Edit,
	Delete:  Keys.Delete,
	Quit:    Keys.Quit,
}
View Source
var Keys = KeyMap{
	NextTab: key.NewBinding(
		key.WithKeys("tab", "right", "l"),
		key.WithHelp("tab/→", "switch view"),
	),
	PrevTab: key.NewBinding(
		key.WithKeys("shift+tab", "left", "h"),
		key.WithHelp("←", "prev view"),
	),
	Tab1: key.NewBinding(
		key.WithKeys("1"),
		key.WithHelp("1-4", "views"),
	),
	Tab2: key.NewBinding(
		key.WithKeys("2"),
	),
	Tab3: key.NewBinding(
		key.WithKeys("3"),
	),
	Tab4: key.NewBinding(
		key.WithKeys("4"),
	),
	Up: key.NewBinding(
		key.WithKeys("up", "k"),
		key.WithHelp("↑/k", "up"),
	),
	Down: key.NewBinding(
		key.WithKeys("down", "j"),
		key.WithHelp("↓/j", "down"),
	),
	Toggle: key.NewBinding(
		key.WithKeys("enter", " "),
		key.WithHelp("enter", "expand/collapse"),
	),
	Edit: key.NewBinding(
		key.WithKeys("e", "r"),
		key.WithHelp("e", "rename"),
	),
	Delete: key.NewBinding(
		key.WithKeys("d", "x", "delete", "backspace"),
		key.WithHelp("d", "delete"),
	),
	Confirm: key.NewBinding(
		key.WithKeys("y"),
		key.WithHelp("y", "yes"),
	),
	Cancel: key.NewBinding(
		key.WithKeys("n", "esc"),
		key.WithHelp("n", "no"),
	),
	Quit: key.NewBinding(
		key.WithKeys("ctrl+c", "q"),
		key.WithHelp("q", "quit"),
	),
}
View Source
var OverviewKeys = KeyMap{
	NextTab: Keys.NextTab,
	Tab1:    Keys.Tab1,
	Quit:    Keys.Quit,
}
View Source
var OverviewTitleKeys = KeyMap{
	NextTab: Keys.NextTab,
	Up: key.NewBinding(
		key.WithKeys("up", "k", "down", "j"),
		key.WithHelp("↑/↓", "filter title"),
	),
	Quit: Keys.Quit,
}
View Source
var SessionsKeys = KeyMap{
	NextTab: Keys.NextTab,
	Up:      Keys.Up,
	Down:    Keys.Down,
	Edit:    Keys.Edit,
	Delete:  Keys.Delete,
	Quit:    Keys.Quit,
}

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	NextTab key.Binding
	PrevTab key.Binding
	Tab1    key.Binding
	Tab2    key.Binding
	Tab3    key.Binding
	Tab4    key.Binding
	Up      key.Binding
	Down    key.Binding
	Toggle  key.Binding
	Edit    key.Binding
	Delete  key.Binding
	Confirm key.Binding
	Cancel  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 New

func New() Model

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

type Tab

type Tab int
const (
	TabOverview Tab = iota
	TabSessions
	TabByTitle
	TabByDate
)

Directories

Path Synopsis
Package components implements UI components for stats.
Package components implements UI components for stats.

Jump to

Keyboard shortcuts

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