Documentation
¶
Index ¶
- Variables
- type Fields
- type KeyMap
- type Location
- type Mode
- 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 tasks.Status)
- func (s *Status) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (s Status) Value() tasks.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 focus between fields"), ), Submit: key.NewBinding( key.WithKeys("enter"), key.WithHelp("enter", "submit the task"), ), }
Functions ¶
This section is empty.
Types ¶
type Fields ¶
type Fields struct {
Status tasks.Status
Due *time.Time
Scheduled *time.Time
Completed *time.Time
Priority *int
Every *tasks.Every
Name string
// contains filtered or unexported fields
}
func NewFields ¶
func NewFields(ctx *context.ProgramContext) *Fields
type Location ¶
type Location struct {
// contains filtered or unexported fields
}
func NewLocation ¶
func NewLocation(ctx *context.ProgramContext) *Location
type Text ¶
type Text struct {
IsValid bool
// contains filtered or unexported fields
}
func NewText ¶
func NewText(ctx *context.ProgramContext) *Text
func (Text) AtBeginning ¶
Click to show internal directories.
Click to hide internal directories.