Hello people!
I created a unique habit tracker/diary. I know there are different, maybe more efficient way to create habit trackers, but I really like this way, and I like the benefits of this method. So what I do is that I create a task with a link (example: [[exercise]]) in the daily note. And in the exercise note I collect these tasks with dataviewjs.
So in the first version I can see the incompleted tasks, so I can see what left to do, and in the second version I can see the completed tasks, so I can track what I did. The only thing I wish for is to show only a few tasks, maybe 7-10, or in the last week/month and not all of them. But I have no idea how to do itā¦ and I know dataview, but I am not familiar with dataviewjs very much. But I want to do it with dataviewjs, because it shows the date, so I can see which day I did the tasks. I also very thank you if you can send me some information about where can I find exact solutions or explanation about this problem, because I did not. I found things about dataviewjs, but not so much about filtering, sorting or limiting tasks.
Do you have any ideas?
so this is the dataviewjs query:
dv.taskList(dv.pages("").file.tasks
.where(t => t.text.includes("[[exercise]]") && t.completed)
)
(I also hope that this system can inspire someone to do something similar.)