What I’m trying to do
I’m trying to have a workspace that doesn’t statically open the same files. Instead depending on what day it is I want it to open the corresponding Periodic Daily Note, Periodic Weekly Note, Periodic Monthly Note, Periodic Quarterly Note, and Periodic Yearly Note.
Ideally it would do both the day before and current day, the week before and current week, the month before and current month, the quarter before and the current quarter, and the year before and the current year.
My Periodic Notes Have the following format:
YYYY-MM-DD
YYYY-[W]ww
YYYY-[M]MM
YYYY-[Q]Q
YYYY
Things I have tried
I thought I may be able to use templater/templater syntax in the workspaces.json but it doesn’t work:
{
"id": "99fa967f71d2e777",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Admin/Periodic Notes/Weekly Notes/<% tp.date.now(\"YYYY-[W]WW\") %>.md",
"mode": "source",
"source": true,
"backlinks": false
},
"icon": "lucide-file",
"title": "<% tp.date.now(\"YYYY-[W]WW\") %>"
}
},
I’ve set up QuickAdd macros that are able to open the corresponding daily note if it exists and if not create it with the current date, same with the Weekly Note with the current week, etc… But I don’t want to have to do them each manually. I want the workspace to all of these at once and arrange the windows in a predefined format.
Question
Does anyone know a method/plugin that enables workspaces that dynamically open files depending on the current date?