Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeyMap = KeyMap{ Tab: key.NewBinding(key.WithKeys("tab"), key.WithHelp("tab", "switch")), Quit: key.NewBinding(key.WithKeys("q", "esc", "ctrl+c"), key.WithHelp("q", "quit")), }
The default keybindings for the timer program
Functions ¶
Types ¶
type KeyMap ¶
KeyMap is a collection of keybindings
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
A model representing the state of the timer program
func (*Model) SetFocus ¶
func (m *Model) SetFocus(f focused)
Set the focus to the given model enumeration
Click to show internal directories.
Click to hide internal directories.