Input: :2020_08
The workflow is following:
- Keyboard maestro extension as trigger of the script
- Script
- Scans your daily notes in fixed location (based on regex of file name)
- Create markdown table
- Add daily notes [[links]] into calendar
- Pushes the linked text back to the clipboard
- Keyboard maestro (Mac OS)
- Python 3 + pip
- Pyperclip - Note that Mac and Linux may require installation of additional modules as per docs
- PyYAML
pip install pyperclip pyyaml
- Install Keyboard meastro script
- Open Keyboard maestro and replace PATH with path to your script (
"./Obsidian/Scripts/obs-insert_calendar.py
- Copy script
(obs-insert_calendar.py)
in fixed folder - Open script
(obs-insert_calendar.py)
in text editor and edit values to fit your settings:- diary_regex - change to regex of the names of your daily notes
- notes_folder - to location of your daily notes folder in Obsidian
- You can also change additional variables in the script to tweak to Calendar look
Assuming you had the following daily notes in your Obsidian vault:
- diary_regex =
"%d-%b-%y"
- notes_folder =
"/Obsidian/Diary/"
Your daily notes looks like:
04-Aug-20.md
05-Aug-20.md
06-Aug-20.md
And the following text is typed in Obsidian:
:2020_08
After executing the script, it would be replaced with the following:
This tool will help to collect daily notes add insert them in handy calendar with all links to individual note. It was intented to be user with Keyboard maestro app. And also with typing trigger. The script can be easily triggered from terminal as well and it is easy to be adapted to for example AutoHotkey in Windows.