Skip to content

Commit ed1f4ff

Browse files
committed
changelog 0.6.5
1 parent 04d3f0b commit ed1f4ff

File tree

3 files changed

+119
-26
lines changed

3 files changed

+119
-26
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [0.6.5](https://github.com/ebullient/obsidian-task-collector/compare/0.6.4...0.6.5)
8+
9+
- 🚸 Rename/Reorder settings [`04d3f0b`](https://github.com/ebullient/obsidian-task-collector/commit/04d3f0b64a3a9bcf9253a21373425425330e36e7)
10+
711
#### [0.6.4](https://github.com/ebullient/obsidian-task-collector/compare/0.6.3...0.6.4)
812

13+
> 9 January 2022
14+
915
- ✨💥 Modal to select item mark [`a38d683`](https://github.com/ebullient/obsidian-task-collector/commit/a38d683ecdcddc80f3e21508fc83d109ff6f598c)
1016
- 🚸 Preserve trailing block ids with completion date [`ab17500`](https://github.com/ebullient/obsidian-task-collector/commit/ab17500db96e9656387d3d240cc161a0c87d5a22)
1117
- Update README with syntax example for dataview task annotations [`c328bc9`](https://github.com/ebullient/obsidian-task-collector/commit/c328bc9f0e143dc49e388310e8ec186e35179128)

README.md

Lines changed: 112 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,143 @@
33

44
Yet another plugin to manage completed tasks. ;)
55

6+
Task Collector commands are oriented around a somewhat archival notion of completed tasks.
7+
8+
- **Completed tasks** are marked with `x`, `X`.
9+
- *Canceled tasks*, marked with `-`, can be added to this group in settings.
10+
- Any other task is considered **incomplete** (or in-progress)
11+
12+
* [Commands](#commands)
13+
* [Settings](#settings)
14+
615
## How to install
716

817
1. Go to **Community Plugins** in your [Obsidian](https://www.obsidian.md) settings and **disable** Safe Mode
918
2. Click on **Browse** and search for "task collector"
1019
3. Click install
1120
4. "Enable" the plugin directly after installation, or use the toggle on the community plugins tab to enable the plugin after it has been installed.
1221

22+
## TL;DR for task completion
23+
24+
![Task Completion](https://user-images.githubusercontent.com/808713/148706433-34d21845-a441-428d-a24c-380c6db457c7.gif)
25+
26+
1. Open the plugin settings
27+
28+
2. Scroll down to **Incomplete task indicators** (0.6.4)/ **Additional Task Types** (0.6.5), and add any task characters you use other than `x`, `X`, and space (` `).
29+
30+
3. *Optional:* Scroll down to find **Toggle: Add menu item for marking a task** (0.6.4), and enable it to add a right-click menu item for marking tasks.
31+
32+
In Source or Live Preview mode, use the [(TC) Mark task](#tc-mark-task) command from the command palette, or the right-click menu (shown in the clip), or bind it to a hot key.
33+
34+
---
35+
36+
## Task states
37+
38+
For the following table,
39+
* assume that support for canceled items has been enabled, and
40+
* that `>` has been defined as an additional (incomplete) task type.
41+
42+
If a task starts in the first column,
43+
and we try using a command to set it to the value in the second column,
44+
we'll get the result in the third column.
45+
46+
| Start | Try | Result | |
47+
|-------|-------|--------|-----------------------------------------------|
48+
| `[ ]` | `[>]` | `[>]` | Value changed to other(`>`) |
49+
| `[ ]` | `[-]` | `[-]` | See [Cancel Task](#tc-cancel-task-if-enabled) |
50+
| `[ ]` | `[x]` | `[x]` | See [Complete Task](#tc-complete-task) |
51+
| `[>]` | `[ ]` | `[ ]` | Value changed to space(` `) |
52+
| `[>]` | `[-]` | `[-]` | See [Cancel Task](#tc-cancel-task-if-enabled) |
53+
| `[>]` | `[x]` | `[x]` | See [Complete Task](#tc-complete-task) |
54+
| `[-]` | `[ ]` | `[ ]` | See [Reset Task](#tc-reset-task) |
55+
| `[-]` | `[>]` | `[>]` | See [Reset Task](#tc-reset-task) |
56+
| `[-]` | `[x]` | `[-]` | *No change. See below* |
57+
| `[x]` | `[ ]` | `[ ]` | See [Reset Task](#tc-reset-task) |
58+
| `[x]` | `[>]` | `[>]` | See [Reset Task](#tc-reset-task) |
59+
| `[x]` | `[-]` | `[x]` | *No change. See below* |
60+
61+
Note: **Completed** tasks won't be directly completed again, they must be reset first.
62+
63+
Completed items may be annotated with data, like `(✅ 2022-01-01)`. Task Collector will
64+
not "re-complete" an already completed item to avoid overwriting or duplicating that annotation.
65+
Completed items must be reset (which would clear that data if present), before being completed
66+
again.
67+
1368
## Commands
1469

15-
- **Complete Task**
70+
### (TC) Mark Task
1671

17-
1. If the current line is a task, and it matches the configuration for an incomplete task (where values other than ` ` are valid), it will mark the item as complete (`[x]`).
18-
2. Optional: Remove characters matching a configured regular expression from the task, e.g. remove a #task or #todo tag.
19-
3. Optional: Append a formatted date string to the task
72+
1. A dialog will pop up showing known task indicators in two groups:
73+
- The first group contains marks for "completed" items.
74+
- The second group contains all other task marks, minimally a space (` `).
75+
2. Use the mouse to select an icon, or type the associated character.
76+
3. What happens next depends on the state of the task and the selected character.
77+
- If an incomplete task is completed (`x`, `X`), see [Complete Task](#tc-complete-task)
78+
- If an incomplete task is canceled (`-`), see [Cancel Task](#tc-cancel-task-if-enabled)
79+
- If a complete item is reset (` ` or other), see [Reset Task](#tc-reset-task)
80+
- If a completed item is completed or canceled, nothing happens.
81+
- If an unknown character is typed, nothing happens.
2082

21-
- **Cancel Task** (if enabled)
83+
### (TC) Complete Task
2284

23-
1. If the current line is a task, and it matches the configuration for an incomplete task (where values other than ` ` are valid), it will mark the item as canceled (`[-]`).
24-
2. Optional: Remove characters matching a configured regular expression from the task, e.g. remove a `#task` or `#todo` tag.
25-
3. Optional: Append a formatted date string to the task
85+
If the current line is (or selection contains) a task, AND the task matches the configuration for an incomplete task:
2686

27-
- **Reset Task** (as of 0.5.0)
87+
1. It will mark the item as complete (`[x]` or `[X]` if selected).
88+
2. Optional: Remove characters matching a configured regular expression from the task, e.g. remove a `#task` or `#todo` tag.
89+
3. If an append date format string is configured, append a formatted date string to the task.
2890

29-
1. If the current line is a task, and it matches the configuration for a completed task (`[x]` or `[-]` if support for canceled tasks is enabled), it will reset it (`[ ]`).
30-
2. If an append date format string is configured, appended text that matches the configured format will be removed.
91+
### (TC) Cancel Task (if enabled)
3192

32-
- **Move completed tasks to configured heading**
93+
If the current line is (or selection contains) a task, AND the task matches the configuration for an incomplete task:
3394

34-
For the current document (open, in edit mode), move any completed (or canceled) tasks into the specified section. It will insert the items after the header (most recent at the top). The section heading will be created if it isn't present, and will stop at the next heading or `---` separator.
95+
1. It will mark the item as canceled (`[-]`).
96+
2. Optional: Remove characters matching a configured regular expression from the task, e.g. remove a `#task` or `#todo` tag.
97+
3. If an append date format string is configured, append a formatted date string to the task
98+
99+
### (TC) Reset Task
100+
101+
If the current line is (or selection contains) a task:
102+
103+
1. It will set it to `[ ]` or an otherwise selected value.
104+
2. If an append date format string is configured, appended text that matches the configured format will be removed.
105+
106+
<small>(as of 0.5.0)</small>
107+
108+
### (TC) Move completed tasks to configured heading
109+
110+
For the current document:
111+
112+
- Move any completed (or canceled) tasks into the specified section. Items will be inserted after the target header (most recent at the top).
113+
114+
### (TC) Complete all tasks
115+
116+
For the current document:
117+
118+
- Apply the [Complete Task](#tc-complete-task) command to all incomplete tasks.
35119

36-
- **Complete all tasks** (as of 0.4.0)
120+
<small>(as of 0.4.0)</small>
37121

38-
For the current document (open, in edit mode), apply the **Complete item** command to all tasks matching the configuration for an incomplete task as complete (`[x]`).
122+
### (TC) Reset all completed tasks
39123

40-
- **Reset all completed tasks** (as of 0.4.0)
124+
For the current document:
41125

42-
For the current document (open, in edit mode), find each completed item that is not in the completed area, and mark it as incomplete (`[ ]`). If an append date format string is configured, appended text that matches the configured format will be removed.
126+
- Apply the [Reset Task](#tc-reset-task) command to all completed tasks that are _not in the (archival) completed area_.
43127

128+
<small>(as of 0.4.0)</small>
129+
130+
---
44131
## Settings
45132

46133
- Toggle **Support canceled tasks**
47-
Use a `[-]` to indicate a canceled tasks. Canceled tasks are processed in the same way as completed tasks using options below.
134+
Use a `[-]` to indicate a canceled tasks. Canceled tasks are processed in the same way as completed tasks.
48135
- default: disabled
49136

137+
- **Additional task indicators** (renamed in 0.6.5)
138+
Specify the set of single characters that indicate in-progress or incomplete tasks.
139+
- default: ` ` (space)
140+
- example: `> ?!` (a space is included along with other values)
141+
- This setting allows checkboxes with other single character values to be treated as incomplete tasks. This is often used with bullet journal (bujo) style tasks, e.g. `[>]` for deferred items or `[/]` for items in progress. See [Task states](#task-states).
142+
50143
### Completing tasks
51144

52145
- **Append date to completed task**
@@ -62,12 +155,6 @@ Yet another plugin to manage completed tasks. ;)
62155
- The global flag, 'g' is applied to a per-line match.
63156
- *Be careful!* Test your expression before using it. There are several [online](https://www.regextester.com/) [tools](https://regex.observepoint.com/) that can help.
64157

65-
- **Incomplete task indicators**
66-
Specify the set of characters that indicate incomplete tasks.
67-
- default: ` ` (space)
68-
- example: `> ?!` (a space is included along with other values)
69-
- The "Complete task" and "Cancel task" commands are careful to work only with incomplete tasks. This setting allows checkboxes with other single character values to be treated as incomplete tasks. This is often used for bujo style tasks, e.g. `[>]` for deferred items or `[/]` for items in progress.
70-
71158
### Moving completed tasks to a sub-section
72159

73160
- **Completed area header**
@@ -84,7 +171,7 @@ Yet another plugin to manage completed tasks. ;)
84171
Remove the checkbox from completed (or canceled) tasks during the move to the completed 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.
85172
- default: `false`
86173

87-
## Right-click editor menu items (Breaking: 0.6.4)
174+
## Right-click editor menu items
88175

89176
- **Toggle: Add menu item for marking a task** (✨ 0.6.4)
90177
Add an item to the right-click menu in edit mode to mark the task _on the current line (or within the current selection)_.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-task-collector",
3-
"version": "0.6.4",
3+
"version": "0.6.5",
44
"private": true,
55
"description": "Manage completed tasks within a document in Obsidian (https://obsidian.md)",
66
"main": "main.js",

0 commit comments

Comments
 (0)