One year ago plugin

Good afternoon!

Modern social networks have a handy feature - what did you do a year ago, what did you do two years ago, and so on.

It would be great if there was such a plugin in addition to the calendar.
Good afternoon.

Modern social networks have a handy feature - what did you do a year ago, what did you do two years ago, and so on.

It would be great if there was such a plugin in addition to the calendar.

Maybe something like this already exists?

you can use the dataview plugin.
Try this query

```dataview
TABLE file.ctime AS "created" 
FROM "" 
WHERE file.cday.year = this.file.cday.year -1
AND file.cday.month = this.file.cday.month
AND file.cday.day = this.file.cday.day
1 Like

I do this, but I use the native embedded search block. I have this in my daily note template under an “On this day” heading:

```query
path:"11 Journal" file:"{{date:-MM-DD}}" -file:"{{date:YYYY}}-"
/```

Note - (remove the “/” on the last line - that’s just there to render the block.

Then, every day I can take a look at what I did on this day in all past years.
Note - my daily notes are in a folder named “11 Journal”. Adjust the path as necessary.

This way removes the need for plugins, (although I do use dataview a lot myself).

3 Likes

Clever!

Thanks! I try to check, how it works.

I know it s a super basic question (and i ve tried to find a solution by my own by reading Search - Obsidian Help)

/query path:Planner file: 2022-12-07 summary /

(Being planner my daily file folder, and 2022-12-07 the name of the daily file, and summary the word i m searching)

This does work and so does if i change
file: 2022-12-07

when i use the
file:“{{date:-MM-DD}}”

it does decode the date thing

any ideas why?

Thanks

edit: added a picture, fixed the text

The {{DATE:MM-DD}} text is when you used template to create new note. It doesn’t work just like that. You create a note with this which you put in the templates folder, and then you insert the template in the note with a command, So that the text transforms into the date.
More information: Templates - Obsidian Help

1 Like

Thanks, i used in templates and did not think about the fact the could not work outside.

I ask something outside the scope of the tread.

if i want to link only to a “section / callout” of an older post using this format,
is it possible?

to be more precise:

my daily template is

Notes of {{DATE:dddd, DD-MM-YY}}

[!ABSTRACT]+ Summary of the day
Contents

  • 1 win from the day
  • 1 point of tension, anxiety, or stress
  • 1 point of gratitude

and so on

I would like to have embeded the “summary of the day of Year -1, -2…”
i know i can call it with the [[ + ^
but is there a way to add it into a template?

thanks

In case you don’t want to go a Dataview route, this plugin exists: GitHub - Kageetai/obsidian-plugin-journal-review: Review your daily notes on their anniversaries, like "what happened today last year"

That s nice, and much better than my current setup. thanks