Skip to content

Commit 2e2e73c

Browse files
committed
feat: Include a search in the 'Review and check your Statuses' report
So that the current status types and names are visible.
1 parent 4dbbf3d commit 2e2e73c

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

src/Statuses/StatusRegistryReport.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,23 @@ ${mermaidText}
5353
5454
Here is one example task line for each of the statuses actually used by tasks, for you to experiment with.
5555
56+
The status symbols and names in the task descriptions were correct when this file was created.
57+
58+
If you have modified the sample tasks since they were created, you can see the current status types and names in the group headings in the Tasks search below.
59+
5660
${sampleTasksText.join('\n')}
61+
62+
## Search the Sample Tasks
63+
64+
This Tasks search shows all the tasks in this file, grouped by their status type and status name.
65+
66+
\`\`\`tasks
67+
path includes {{query.file.path}}
68+
group by status.type
69+
group by status.name
70+
sort by function task.lineNumber
71+
hide postpone button
72+
short mode
73+
\`\`\`
5774
`;
5875
}

tests/Statuses/StatusRegistryReport.test.StatusRegistryReport_should_create_a_report.approved.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,26 @@ linkStyle default stroke:gray
6767

6868
Here is one example task line for each of the statuses actually used by tasks, for you to experiment with.
6969

70+
The status symbols and names in the task descriptions were correct when this file was created.
71+
72+
If you have modified the sample tasks since they were created, you can see the current status types and names in the group headings in the Tasks search below.
73+
7074
- [ ] Sample task 1: status symbol=`space` status name='Todo'
7175
- [x] Sample task 2: status symbol=`x` status name='Done'
7276
- [/] Sample task 3: status symbol=`/` status name='In Progress'
7377
- [-] Sample task 4: status symbol=`-` status name='Cancelled'
7478
- [Q] Sample task 5: status symbol=`Q` status name='Question'
7579
- [A] Sample task 6: status symbol=`A` status name='Answer'
80+
81+
## Search the Sample Tasks
82+
83+
This Tasks search shows all the tasks in this file, grouped by their status type and status name.
84+
85+
```tasks
86+
path includes {{query.file.path}}
87+
group by status.type
88+
group by status.name
89+
sort by function task.lineNumber
90+
hide postpone button
91+
short mode
92+
```

0 commit comments

Comments
 (0)