Skip to content

Commit aa2058d

Browse files
committed
docs: update docs + add changelog
1 parent ce39dcb commit aa2058d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

docs/docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- You can now sort tasks alphabetically by name using `alphabetical` or `alphabeticalDescending` in the sorting field
1818
- You can now provide 'time' to the show field on a query. This will only render the time of the task (unless the end of the task is on a different day than the start).
1919
- You can now provide 'section' to the show field on a query to display only the section name for tasks in sections.
20+
- You can now customize the "no tasks found" message using `view.noTasksMessage` in your query to display a personalized message when a query returns no tasks.
2021

2122
### 🐛 Bug Fixes
2223

docs/docs/query-blocks.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
sidebar_position: 3
3+
toc_max_heading_level: 4
34
---
45

56
# Query Blocks
@@ -155,3 +156,21 @@ filter: "today | overdue"
155156
show: none
156157
```
157158
````
159+
160+
### `view`
161+
162+
The `view` objects allows you to configure how the query results are displayed.
163+
164+
#### `noTasksMessage`
165+
166+
The `noTasksMessage` property allows you to customize the message displayed when a query returns no tasks. If not specified, the default message will be shown.
167+
168+
For example:
169+
170+
````
171+
```todoist
172+
filter: "today"
173+
view:
174+
noTasksMessage: "Nothing due today! Take a break."
175+
```
176+
````

0 commit comments

Comments
 (0)