Documentation
¶
Index ¶
Constants ¶
View Source
const ( Nerd iconType = "nerd" Text iconType = "text" )
Variables ¶
View Source
var DefaultIconConfig = &IconConfig{ IconType: Nerd, Icons: &NerdIcons, }
View Source
var NerdIcons = Icons{
None: " ",
Done: " ",
Undone: " ",
Inbox: " ",
Favorite: " ",
Indent: "│ ",
LastIndent: "└ ",
}
View Source
var TextIcons = Icons{
None: " ",
Done: "[x]",
Undone: "[ ]",
Inbox: "IN",
Favorite: "* ",
Indent: " ",
LastIndent: " ",
}
Functions ¶
func NewSectionView ¶
Types ¶
type IconConfig ¶
type IconConfig struct {
IconType iconType `toml:"default"`
*Icons
}
func (*IconConfig) UnmarshalTOML ¶
func (c *IconConfig) UnmarshalTOML(p any) error
type ReorderItem ¶
type ReorderView ¶
func NewReorderView ¶
func NewReorderView(items []*ReorderItem) ReorderView
type TaskViewConfig ¶
type View ¶
type View interface {
Render() string
}
func NewTaskView ¶
func NewTaskView(tasks []*model.Task, icons *Icons, config *TaskViewConfig) View
Click to show internal directories.
Click to hide internal directories.