Using Dataview or Templater to gather previous weekly note uncompleted tasks

Hey everyone,
I have a journal system that seems to differ from everybody else. I don’t use daily notes for my daily tasks, instead I have a weekly note with a header for each day.

I’ve been trying to take inspiration from the “rollover-daily-todos” plugin to find a way to automatically transfer my uncompleted tasks from last week’s note and put them all in the current week’s note.

I’m sure there are other ways to do this with templater or scripts (probably by reporpusing the code from the rollover-daily-todo plugin, but that is way out of my league, so for now, I’m trying to figure it out using Dataview.

I’m already using periodic notes and templater to automate the creation of my weekly notes.
So far, I’ve included this in the template :

from "Weekly"
where !completed

(weekly being my folder where I keep all my weekly notes)

I would like to add a line that tells dataview to look for last week’s note, and that’s where I’m stuck.
I suppose it should go something like : WHERE = dateformat(date, etc…) but I don’t know how to tell it to look at last week’s date and then pull up the note based on that.

Any idea ?

My format for weekly note naming is [Week] w - YYYY

Thanks in advance

I’ve tried the following :

from "Weekly"
WHERE !completed 
WHERE = dateformat(date(today) - dur(1 w), "'Semaine'w - YYYY")

I don’t get an error, but I don’t get a result either, so I’m guessing that’s not it, but I don’t understand why it doesn’t work

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.