Skip to content

Commit 1f06f10

Browse files
committed
docs: update docs and changelog
1 parent 324efd9 commit 1f06f10

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

docs/docs/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
### ✨ Features
1616

1717
- The plugin will now automatically refresh your Todoist projects, sections, and labels in the background. This happens every 10 minutes. This should reduce the incidence of "unknown" metadata labels.
18+
- You can now use `view.hideNoTasks` in your query to completely hide the query output when no tasks are returned.
1819

1920
### 🐛 Bug Fixes
2021

@@ -379,7 +380,6 @@ Check it out at [jamiebrynes7/moonlight-obsidian-theme](https://github.com/jamie
379380

380381
- Tasks now render labels under them by default. This can be toggled in the settings (along with the accompanying icon).
381382
- Tasks now render projects & section under them by default. This can be toggled in the settings (along with the accompanying icon).
382-
383383
- The layout of the project, date, and label combo can be configured in CSS. For example:
384384

385385
```css

docs/docs/query-blocks.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,17 @@ view:
174174
noTasksMessage: "Nothing due today! Take a break."
175175
```
176176
````
177+
178+
#### `hideNoTasks`
179+
180+
The `hideNoTasks` property allows you to completely hide the query output when no tasks are returned. When set to `true`, nothing will be rendered if the query returns no tasks, rather than showing a message.
181+
182+
For example:
183+
184+
````
185+
```todoist
186+
filter: "#work & today"
187+
view:
188+
hideNoTasks: true
189+
```
190+
````

0 commit comments

Comments
 (0)