Documentation ¶
Index ¶
- Variables
- type CancelBreakMsg
- type CancelPomoMsg
- type CompletePomoMsg
- type DeleteTaskMsg
- type KeyMap
- type Model
- func (m *Model) EditTask(task pomo.Task) tea.Cmd
- func (m Model) FullHelp() [][]key.Binding
- func (m Model) Init() tea.Cmd
- func (m *Model) InputNewTask(status pomo.Status) tea.Cmd
- func (m *Model) SetPrompt(prompt string, onConfirm tea.Msg)
- func (m Model) ShortHelp() []key.Binding
- func (m *Model) ToggleHelp()
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
- type StartPomoMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UpToDateStyle = lipgloss.NewStyle().Foreground(color.BrightGreen).Bold(true) DirtyStyle = lipgloss.NewStyle().Foreground(color.BrightWhite).Bold(true) CallToAction = lipgloss.NewStyle(). Bold(true). Padding(1, 2). Border(lipgloss.DoubleBorder(), true). BorderForeground(lipgloss.Color("63")). Foreground(lipgloss.Color("111")) Bold(true). Padding(0, 1). Background(lipgloss.Color("206")). Foreground(lipgloss.Color("228")) Bold(true). Padding(0, 1). Background(lipgloss.Color("235")). Foreground(lipgloss.Color("248")) Padding(0, 1). Bold(true). Background(color.Gray). Foreground(color.BrightRed) Bold(true). Padding(0, 1). Background(lipgloss.Color("233")). Foreground(lipgloss.Color("243")) Bold(true). Padding(0, 1). Background(lipgloss.Color("94")). Foreground(lipgloss.Color("255")) Padding(0, 1). Background(lipgloss.Color("62")). Foreground(lipgloss.Color("230")) Padding(0, 1). Background(lipgloss.Color("237")). Foreground(lipgloss.Color("243")) Help = lipgloss.NewStyle(). Padding(1, 1, 0) )
Functions ¶
This section is empty.
Types ¶
type CancelBreakMsg ¶
type CancelBreakMsg struct{}
type CancelPomoMsg ¶
type CancelPomoMsg struct{}
type CompletePomoMsg ¶
type CompletePomoMsg struct{}
type DeleteTaskMsg ¶
type DeleteTaskMsg struct{}
type KeyMap ¶
type KeyMap struct { ToggleHelp key.Binding Quit key.Binding StartPomo key.Binding CancelPomo key.Binding StartBreak key.Binding CancelBreak key.Binding NewTask key.Binding EditTask key.Binding DeleteTask key.Binding }
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
type Model ¶
type Model struct { KeyMap KeyMap // contains filtered or unexported fields }
func (*Model) ToggleHelp ¶
func (m *Model) ToggleHelp()
type StartPomoMsg ¶
type StartPomoMsg struct{}
Click to show internal directories.
Click to hide internal directories.