Considering my limitations in the plugin, I suggest two ways:
- If you have only ‘parent’ tasks, you can try something like this:
```dataviewjs
dv.taskList(dv.pages().file.tasks
.where(t => !t.completed))
- If you have ‘children’ tasks, then you can adopt a ‘tricky’ solution with css snippets.
- create a
cssclass in frontmatter:
---
cssclass: hidetasks
---
- write a simple dataview query:
```dataview
task
- create a css snippets with this:
/* hide checked tasks */
.markdown-preview-view.hidetasks ul > li.task-list-item.is-checked {
display: none;
}
This affects all the content of the note with the cssclass defined, that is, all the checked tasks on this note are hidden.