BASES - This Day In History
Setup
- Create a new "Base" - either directly in Obsidian or in the editor of your choice. Let's call it
This Day in History.base
. - Open the new file in your text editor.
- Copy the code below and paste it into the editor.
- Save the file.
- Adapt the code in the text editor or open the file in Obsidian and adjust the filter settings there to match your environment.
- Embed the Base in your daily notes.
Important
This is based on the assumption that your daily notes are named in the format YYYY-MM-DD
. If they are not, you need to adapt the query accordingly.
Result
You will get a list of notes created on this day over the years. If you place it inside a callout, it looks like this:
Code
filters:
and:
- file.basename != this.file.basename
properties:
file.name:
displayName: Name
views:
- type: list
name: Table
filters:
and:
- file.name.contains(date(this.file.name).format("MM-DD").toString())
sort:
- property: file.name
direction: DESC