Task collection works on the tasks within a note.
Tasks that match a mark configured for collection will be gathered into the designated area of the note.
The (TC) Collect Tasks
command or menu item triggers the following process:
- Any missing Area headings will be added to the end of the document.
- The document will be scanned from top to bottom to isolate discovered Area headings and their target sections.
- General note content is scanned from top to bottom for tasks that should be collected. Each discovered task is moved to a block of pending tasks associated with the closest matching Area header (where do tasks go?).
- Collection target sections are then scanned (in order of appearance in the doc) for tasks that belong in a different section. Those are then added to the block of pending tasks for the closest matching Area header.
- Finally, the document is reassembled. Area headings and their target sections are placed back into the document, with the pending block for each appearing immediately under the section header (most recent will be first).
If you walk through the above with the following example, you should end up with the tasks in the same order:
Before | After |
---|---|
|
|
To test out this example:
- Enable task collection
- Set the Area header for the
default
group to## To Do
- Set the Area header for the
complete
group to## Log
- Create a new group,
deferred
, that supports one mark (>
) and uses## Deferred
as an area header.
Put the initial text in a note, and run (TC) Collect Tasks
.
You can have more than one heading of each type in the note.
If there are multiple sections of the same name, tasks that are discovered will be moved to the next (following) matching section. If a section is not found between the task and the end of the note, the search resumes from the top.
Notes:
- Marked tasks will carry along their sub items (nested lists, text, or quotes).
- If a marked item has an unmarked child task, the child (and any text following) will remain in the original location.
-
Task collection must be enabled
-
An Area heading must be defined for a task group
Specifying an area heading enables collection for tasks that use any of the marks in that group.
- A new heading will be created at the end of the note if it does not exist.
- Tasks with marks matching this group between this header and the next header or
---
will be ignored when collecting tasks (as they are already where they belong).
-
Remove checkbox for a task group
Remove the checkbox marked tasks during the move to the configured area.This transforms tasks into normal list items. Task Collector will not be able to reset these items. They also will not appear in task searches or queries.