Documentation ¶
Index ¶
- Variables
- type KeyMap
- type Model
- type Status
- func (s *Status) Blur() *Status
- func (s *Status) Focus() *Status
- func (s *Status) Init() (tea.Model, tea.Cmd)
- func (s *Status) Margin(i ...int) *Status
- func (s *Status) SetValue(value projects.Status)
- func (s *Status) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (s Status) Value() projects.Status
- func (s *Status) View() string
- type Text
- func (t Text) AtBeginning() bool
- func (t *Text) Blur() *Text
- func (t Text) Cursor() int
- func (t *Text) Focus() *Text
- func (t *Text) Init() (tea.Model, tea.Cmd)
- func (t *Text) SetCursor(i int)
- func (t *Text) SetValue(s string) *Text
- func (t *Text) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (t Text) Value() string
- func (s *Text) View() string
- func (t *Text) Width(i int) *Text
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeyMap = KeyMap{ ToggleFocus: key.NewBinding( key.WithKeys("tab"), key.WithHelp("tab", "toggle metadata tasks list and completed tasks list"), ), CursorUp: key.NewBinding( key.WithKeys("k", "up"), key.WithHelp("↑/k", "move cursor up"), ), CursorDown: key.NewBinding( key.WithKeys("j", "down"), key.WithHelp("↓/j", "move cursor down"), ), AddTask: key.NewBinding( key.WithKeys("a"), key.WithHelp("a", "add a new task"), ), EditTask: key.NewBinding( key.WithKeys("e", "enter"), key.WithHelp("e/enter", "edit the selected task"), ), DeleteTask: key.NewBinding( key.WithKeys("d"), key.WithHelp("d", "delete the selected task"), ), RescheduleTask: key.NewBinding( key.WithKeys("r"), key.WithHelp("r", "reschedule the selected task"), ), CompleteTask: key.NewBinding( key.WithKeys("x"), key.WithHelp("x", "complete the selected task"), ), }
Functions ¶
This section is empty.
Types ¶
type Text ¶
type Text struct { IsValid bool // contains filtered or unexported fields }
func (Text) AtBeginning ¶
Click to show internal directories.
Click to hide internal directories.