Very good. Bravo!
I do hope more people take a look at this and ponder additional options. This seems like a very good prototype proof of concept approach for a calendar daily note plugin.
I did a little testing before breaking for lunch and it worked just as you described on macOS.
I did change the following:
From:
displayFormat="%d"
To
displayFormat="%e"
I am guessing as a default folks might want 1-9 instead of 01-09.
I used %d in the script I posted yesterday but like %e better, the way @matthewpmunger’s displayed.
Here are a few things to consider:
- Make the name of the file a variable so folks can change the name of the file in one place if they need or want.
- Also need a path variable for where to write the file. I keep my daily notes in one folder and the index or calendar for them in the root of my vault.
- Place all the user-configurable variables near the top together in a section so folks won’t need to dig through the source for what they need to change.
- Would be nice to highlight today’s date by wrapping it with ==.
It would look like this:
I think once you finish, your script will be very useful to many people.
Great idea and nice work.