What I’m trying to do
The goal is to have at the top of a note all open tasks which might be added somewhere in the same note.
Things I have tried
I use this dataviewjs script:
const query = `
not done
path includes ${dv.current().file.path}
# you can add any number of extra Tasks instructions, for example:
group by heading
`;
dv.paragraph('```tasks\n' + query + '\n```');
Which works, but if I type now in the note, especially if I add new checkboxes aka open tasks typing gets super slow because the dataview at the top of the note gets constantly updated.
Any idea how to achieve this in a more performant way? I would be even happy if the dataview doesn’t do live updates but only updates once when I load the note. The goal is, that if I come back to the note I directly see all open tasks accross the note. While I’m editing the note, I don’t need live updates of the list.
Any idea?