Timeline based on the day of the week #433
Replies: 1 comment
-
Hi, I've found a way to do this, but it doesn't get rid of the astronomical creation of daily notes, so I'll have to delete them regularly. In the settings of the daily notes core plugin, I've defined a path to a note template named "Distribute weekday template". I have a folder containing a note template for each day of the week: In my "Distribute Weekday template", I put these lines of code based on what I saw in the documentation: <% tp.file.include(tp.file.find_tfile("Path/To/Your/Weekday/Template/Notes/"+ tp.date.now("dddd", 0, tp.file.title, "YYYY-MM-DD")))) %> So now, when a daily note is created (obviously "Trigger Template on new file creation" is checked, in the Templater settings) it receives my "Distribute Weekday template" content as a template and reads my code to find and include in the daily note my weekday template, relative to the weekday of the title. If the title of my daily note is 2024-04-19, the code will execute a search for a note in the given path, which has Friday as its name. I hope that's clear enough :p The problem is that it still creates a daily note, which I don't want. Have a good day |
Beta Was this translation helpful? Give feedback.
-
Hello,
I recently downloaded the Day Planner plugin, which I really like. I haven't had the time to test everything, but I'd like to achieve something that doesn't seem possible at the moment for a personal project.
I'd like the timeline not to create a new note on the current date. I'd like to be able to tell the plugin to fetch templates from a certain folder. It would then look in this template folder for a file with the name of the day of the week, which it would display in the timeline, and it would display the template's tasks in the timeline.
I'll try to give you an example:
It's Thursday. At the top of the timeline, it will say that it's Thursday. For the moment, the plugin does this perfectly, and I've even modified the date display in the parameters to show DD dddd MMMM YYYY => 18 Thursday April 2024.
It looks great.
When you click on the timeline to create a new task, or when you click on the date at the top of the timeline, or when you press the "Open today's Daily note" button, it fetches or creates a note on today's exact date. It will search for or create this new note in the folder referenced in the core Daily note plugin, or in the Periodic note plugin if downloaded.
So for each day, a new note is created. Over time, the number of daily notes will be astronomical.
For my project, I'd like to create a different planner. A planner that use a template for each day of the week BUT one that's identical every week.
Ideally, I'd like the plugin to provide the path to a folder containing our day-of-week templates, so that if we're on Thursday, it can find a file in the templates folder called "Thursday" and use it to display the timeline.
I hope I've expressed myself correctly to make myself understood.
Thank you in advance for your answers if there's a way to do it right now with a little fiddling, or if you agree to create this option.
Beta Was this translation helpful? Give feedback.
All reactions