Documentation
¶
Index ¶
- func GetPath() string
- func Shorten(s string, maxLen int) string
- func TaskToItems(tasks []Task) []list.Item
- func WriteItems(tasks []Task)
- type Daily
- func (m Daily) CreateTask(msg messages.TaskPopupMessage, isUnique bool)
- func (m Daily) DeleteTask(msg messages.TaskPopupMessage)
- func (m Daily) EditTask(msg messages.TaskPopupMessage)
- func (m *Daily) Init() tea.Cmd
- func (m *Daily) Refresh()
- func (m Daily) StatusChangeTask(msg messages.TaskPopupMessage)
- func (m *Daily) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Daily) View() string
- type Task
- type TaskDelegate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TaskToItems ¶
func WriteItems ¶
func WriteItems(tasks []Task)
Types ¶
type Daily ¶
type Daily struct {
Width int
Height int
List list.Model
Tasks []Task
Popup *taskpopup.TaskPopup
ShowPopup bool
Keymap keymap.DailyTaskMap
Help help.Model
}
func (Daily) CreateTask ¶
func (m Daily) CreateTask(msg messages.TaskPopupMessage, isUnique bool)
func (Daily) DeleteTask ¶
func (m Daily) DeleteTask(msg messages.TaskPopupMessage)
func (Daily) EditTask ¶
func (m Daily) EditTask(msg messages.TaskPopupMessage)
func (Daily) StatusChangeTask ¶
func (m Daily) StatusChangeTask(msg messages.TaskPopupMessage)
type Task ¶
type Task struct {
TaskTitle string `csv:"title"`
TaskDesc string `csv:"desc"`
Status enums.TaskStatus `csv:"status"`
// We will not store these data in the file
ID int `csv:"-"` // Point to index in the respective type array
TaskType enums.TaskType `csv:"-"`
}
func (Task) Description ¶
func (Task) FilterValue ¶
type TaskDelegate ¶
type TaskDelegate struct{}
func (TaskDelegate) Height ¶
func (d TaskDelegate) Height() int
func (TaskDelegate) Spacing ¶
func (d TaskDelegate) Spacing() int
Click to show internal directories.
Click to hide internal directories.