Versions in this module Expand all Collapse all v0 v0.1.1-beta1 Jul 17, 2021 v0.1.0 Jul 1, 2021 Changes in this version + var CreateDirectoryIfMissing = true + var DefaultConfig = v1.Config + var EntryTemplate = `- [ ] ...` + func AsMarkdown(path string, e v1.Entry) markdown + func EntryTaskStatus(e *v1.Entry, style TaskCompletionStyle) string + type DocType int + const ConvertedDoc + const LocalDoc + const NewsDoc + const NoDocType + const StashedDoc + func (d DocType) String() string + type DocTypeSet map[DocType]struct + func NewDocTypeSet(t ...DocType) DocTypeSet + func (d *DocTypeSet) Add(t ...DocType) int + func (d DocTypeSet) AsSlice() (agg []DocType) + func (d DocTypeSet) Contains(m ...DocType) bool + func (d DocTypeSet) Difference(t ...DocType) DocTypeSet + func (d DocTypeSet) Equals(other DocTypeSet) bool + type Mode string + var EditMode Mode = "edit" + var HelpMode Mode = "help" + var ListMode Mode = "list" + var UseHighPerformanceRendering = false + var ViewMode Mode = "view" + type Model struct + Author string + Config v1.Config + Date time.Time + Mode Mode + Timeline []time.Time + UseAltScreen bool + func NewFromConfigFile(path string, user string, useAltScreen bool) (*Model, error) + func (m *Model) CurrentEntry() (*v1.Entry, error) + func (m *Model) CurrentEntryPath() string + func (m *Model) DefaultTagsForTime(t time.Time) []string + func (m *Model) EditMarkdown(md *markdown) tea.Cmd + func (m *Model) LogUserError(err error) + func (m *Model) LogUserNotice(msg string) + func (m *Model) TitleFromTime(t time.Time) string + func (m Model) Init() tea.Cmd + func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m Model) View() string + type TaskCompletionStyle string + var TaskStyleDiscrete TaskCompletionStyle = "discrete" + var TaskStylePercent TaskCompletionStyle = "percent" + type TaskListStatus struct + Checked int + Total int + func TaskList(content string) TaskListStatus + func (tls *TaskListStatus) Percent() float64 + func (tls *TaskListStatus) PercentString() string + func (tls *TaskListStatus) String() string