Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClockEntry ¶
ClockEntry represents a single clock entry
type Item ¶
type Item struct {
Level int // Heading level (number of *)
State TodoState // TODO, PROG, BLOCK, DONE, or empty
Priority Priority // Priority: A, B, C, or empty
Title string // The main title text
Tags []string // Tags for this item (e.g., :work:urgent:)
Scheduled *time.Time
Deadline *time.Time
Closed *time.Time // Closed timestamp (when task was marked as done)
Effort string // Effort estimate (e.g., "8h", "2d")
Notes []string // Notes/content under the heading
Children []*Item // Sub-items
Folded bool // Whether the item is folded (hides notes and children)
ClockEntries []ClockEntry // Clock in/out entries
SourceFile string // Source file path (used in multi-file mode)
}
Item represents a single org-mode item (heading)
func (*Item) GetCurrentClockDuration ¶
GetCurrentClockDuration returns the duration of the current clock entry
func (*Item) GetTotalClockDuration ¶
GetTotalClockDuration returns the total duration of all clock entries
func (*Item) IsClockedIn ¶
IsClockedIn returns true if there's an active clock entry
func (*Item) ToggleFold ¶
func (item *Item) ToggleFold()
ToggleFold toggles the folded state of an item
type OrgFile ¶
OrgFile represents a parsed org-mode file
func (*OrgFile) GetAllItems ¶
GetAllItems returns a flattened list of all items (for UI display) Respects folding - folded items don't show their children
Click to show internal directories.
Click to hide internal directories.