I took a stab at making my first library. The goal is to be able to have recurring todo items show up at different frequencies. Any feedback is appreciated!
This is great, I'll definitely use it. A couple thoughts:
- I think allowing the user to provide a format string for their daily note and falling back to your default when they don't makes sense. For example, mine is
Journal/%Y/%Y-%m-%d. - Seems like it's possible to run the task when a page matching the journal pattern for the current day is first created? Is there a reason not to do this?
- Is there some way to provide progress / status? The first time I ran it I didn't really know whether it was running and it seemed to take a while.
I too was working on something like this for my own needs. Yours is a lot more feature packed than what I curently have so I'll use yours instead! Thanks for sharing!
I have been testing this out for two days. If you are accessing from a device that comes over the internet, it does take 10 seconds or more for the updates to occur. When I use it from PCs on my home network it only takes a second or two to update.
In the WRITE TO TODAY section of the code you can change the output file to something like this to match better with either the Quick Note Index folder files or the naming convention of the Calendar Journal files. I am using [start: 2026-02-10] type dates in my RecurringTasks items but have noticed almost all my tasks are generated even when the date hasn't happened yet. I messaged the author to ask him to provide more examples.
local dailyPage = CONFIG.dailyNotePrefix .. os.date("%Y-%m-%d_%a")
instead of local dailyPage = CONFIG.dailyNotePrefix .. todayString