Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AlertStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("62")).Render
AlertStyle provides styling for alert messages
View Source
var DocStyle = lipgloss.NewStyle().Margin(0, 2)
DocStyle styling for viewports
View Source
var ErrStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#bd534b")).Render
ErrStyle provides styling for error messages
View Source
var HelpStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("241")).Render
HelpStyle styling for help context menu
View Source
var Keymap = keymap{ Create: key.NewBinding( key.WithKeys("c"), key.WithHelp("c", "create"), ), Enter: key.NewBinding( key.WithKeys("enter"), key.WithHelp("enter", "select"), ), Rename: key.NewBinding( key.WithKeys("r"), key.WithHelp("r", "rename"), ), Delete: key.NewBinding( key.WithKeys("d"), key.WithHelp("d", "delete"), ), Back: key.NewBinding( key.WithKeys("esc"), key.WithHelp("esc", "back"), ), Quit: key.NewBinding( key.WithKeys("ctrl+c", "q"), key.WithHelp("ctrl+c/q", "quit"), ), Tab: key.NewBinding( key.WithKeys("tab", ""), key.WithHelp("tab", "tab"), ), Filter: key.NewBinding( key.WithKeys("/"), key.WithHelp("f", "filter"), ), Tick: key.NewBinding( key.WithKeys("t"), key.WithHelp("t", "tick"), ), }
Keymap reusable key mappings shared across models
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model holds necessary charm models and more to bring the habit tracker to life!
func (Model) Init ¶
Init initializes Model behaviour. Here we start to tick to launch the progress bar animation
Click to show internal directories.
Click to hide internal directories.