Documentation
¶
Index ¶
- Constants
- func Ask(question string, answer string, placeholder string, action AskAnswerAction) tea.Cmd
- func New(name string, data storage.Storage) tea.Model
- func PickOne(prompt string, options []string, action PickOneAction) tea.Cmd
- func RequestEdit(entryMeta storage.EntryMeta) tea.Cmd
- func SetUiState(newState uiState) tea.Cmd
- func UpdateIndex(idx storage.Index) tea.Cmd
- func UpdateStatus(message string, dirt dirtState) tea.Cmd
- func UpdateStatusName(name string) tea.Cmd
- type AskAnswerAction
- type AskRequestMsg
- type AskScreen
- type EditRequestMsg
- type EditScreen
- type HelpScreen
- type IndexUpdateMsg
- type ListScreen
- type PickOneAction
- type PickOneRequestMsg
- type PickOneScreen
- type Placeholder
- type StatusNameUpdateMsg
- type Statusbar
- type StatusbarUpdateMsg
- type UI
- type UIStateUpdateMsg
Constants ¶
View Source
const ( UIStateHelping uiState = iota UIStateListing UIStateEditing UIStatePicking UIStateAsking )
View Source
const ( DirtStateUnchanged dirtState = iota DirtStateDirty DirtStateClean )
Variables ¶
This section is empty.
Functions ¶
func SetUiState ¶
func UpdateStatus ¶
func UpdateStatusName ¶
Types ¶
type AskAnswerAction ¶
type AskRequestMsg ¶
type AskRequestMsg struct {
Question string
Answer string
Placeholder string
Action AskAnswerAction
}
type AskScreen ¶
type AskScreen struct {
// contains filtered or unexported fields
}
func NewAskScreen ¶
func NewAskScreen() AskScreen
type EditRequestMsg ¶
type EditScreen ¶
type EditScreen struct {
// contains filtered or unexported fields
}
func NewEditScreen ¶
func NewEditScreen(data storage.Storage) EditScreen
func (EditScreen) Init ¶
func (es EditScreen) Init() tea.Cmd
func (EditScreen) Name ¶
func (es EditScreen) Name() string
func (EditScreen) View ¶
func (es EditScreen) View() string
type HelpScreen ¶
type HelpScreen struct {
// contains filtered or unexported fields
}
func NewHelpScreen ¶
func NewHelpScreen() HelpScreen
func (HelpScreen) Init ¶
func (h HelpScreen) Init() tea.Cmd
func (HelpScreen) View ¶
func (h HelpScreen) View() string
type IndexUpdateMsg ¶
type ListScreen ¶
type ListScreen struct {
// contains filtered or unexported fields
}
func NewListScreen ¶
func NewListScreen(data storage.Storage) ListScreen
func (ListScreen) Init ¶
func (ls ListScreen) Init() tea.Cmd
func (ListScreen) View ¶
func (ls ListScreen) View() string
type PickOneAction ¶
type PickOneRequestMsg ¶
type PickOneRequestMsg struct {
Prompt string
Options []string
Action PickOneAction
}
type PickOneScreen ¶
type PickOneScreen struct {
// contains filtered or unexported fields
}
func NewPickOneScreen ¶
func NewPickOneScreen() PickOneScreen
func (PickOneScreen) Init ¶
func (po PickOneScreen) Init() tea.Cmd
func (PickOneScreen) View ¶
func (po PickOneScreen) View() string
type Placeholder ¶
type Placeholder struct {
// contains filtered or unexported fields
}
func (Placeholder) Init ¶
func (ph Placeholder) Init() tea.Cmd
func (Placeholder) View ¶
func (ph Placeholder) View() string
type StatusNameUpdateMsg ¶
type StatusNameUpdateMsg string
type Statusbar ¶
type Statusbar struct {
// contains filtered or unexported fields
}
func NewStatusbar ¶
type StatusbarUpdateMsg ¶
type StatusbarUpdateMsg struct {
Message string
Dirt dirtState
}
type UIStateUpdateMsg ¶
type UIStateUpdateMsg struct {
SetState uiState
}
Click to show internal directories.
Click to hide internal directories.