Add a new context to the task. Will append to the end. If the context is already present, it will not be added.
A valid context, without the @
Add a new project to the task. Will append to the end. If the project is already present, it will not be added.
A valid project, without the +
Get the body of the task.
The body portion of the task.
Remove the completed date from the task.
Remove the created date from the task.
Side Effect
Clearing the created date will also unset the completed date.
Remove the priority from this task.
Is this task complete?
Get the completed date of this task.
The completed date, or null if not set.
Get the completed date as string, or an empty string if not set.
The completed date as a string formatted for todo.txt (YYYY-MM-DD)
Get all of the context tags on the task.
Context tags, without the @
Get the creation date of this task.
The creation date, or null if not set.
Get the creation date as string, or an empty string if not set.
The creation date as a string formatted for todo.txt (YYYY-MM-DD)
Get all of the project tags on the task.
Project tags, without the +
Parse in a full todo.txt line, replacing and resetting all fields.
A full todo.txt task line
Get the priority of this Item, or null if not present.
Get all of the project tags on the task.
Project tags, without the +
Remove a context from the task, if present.
A valid context, without the @
Remove a project from the task, if present.
A valid project, without the +
Parse and set the body and body elements.
Side Effect
This will clear and re-load contexts, projects and extensions.
A todo.txt description string.
Set if this task is complete.
Side Effect
Setting this to false will clear the completed date.
True if the task is complete.
Set the priority of the task. Passing null or no argument clears priority.
A priority from A-Z or null to clear priority.
Generate the full todo.txt line of this Item, as well as spans describing the location of all of it's component parts.
Generate a full todo.txt line out of this Item.
Represents a single line in a todo.txt file.