You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/changelog.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
17
- You can now sort tasks alphabetically by name using `alphabetical` or `alphabeticalDescending` in the sorting field
18
18
- 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).
19
19
- 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.
Copy file name to clipboardExpand all lines: docs/docs/query-blocks.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
---
2
2
sidebar_position: 3
3
+
toc_max_heading_level: 4
3
4
---
4
5
5
6
# Query Blocks
@@ -155,3 +156,21 @@ filter: "today | overdue"
155
156
show: none
156
157
```
157
158
````
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."
0 commit comments