I like to create a .txt file for each day to take notes. It’s akin to a fresh sheet of paper. The name of each daily note is yyMMdd.txt
for easy sorting.
Here’s my workflow for doing these daily notes using Shortcuts and a text editor.
-
Create a directory where you want your daily notes to live. I put mine at the root of my iCloud drive in a folder called “daily”.
-
Open the Shortcuts app and select the plus button in the top right to create a new shortcut.
-
In the search bar on the right, type “shell” and double-click or drag the “Run Shell Script” action over to the shortcut.
-
Ignoring the textbox that says
echo “Hello World”
, set the shell to “zsh” and the pass input option to “as arguments”. -
For the input option select “Current Date”. This input will determine what the title of your .txt file is. By default, the current date will show up as
February 29, 2024 at 9:00 AM
. I want this to show up as240229
; to do this, select the Current Date input and change the “Date Format” to “Custom”. Then you can replace the “Custom Format” textbox withyyMMdd
.
yyyyMMdd
. - Finally, replace the
echo “Hello World”
with the following zsh script:
You will need to adjust the PATH_TO_FILE and TEXT_EDITOR . I (ChatGPT) also edited the script to add the current date to the first line of my .txt file. Here’s the final script I use: