You can generate links to any of your notes and use them on macOS or iOS. Copy the note URL by pressing alt+enter on an Alfred result or paste it using the snippet. This will generate two links. The first one works on macOS Big Sur (11) and newer, and the second one works on iOS.
Download the latest version of the workflow if you're on the latest macOS with Alfred >= 4. For older versions of macOS, you may need to use older versions of the workflow.
If the script produces an error, especially after installing updates to macOS, try turning the permissions below off and on again. Please look through common issues before submitting a new one.
The most common issue panic: unable to open database file: operation not permitted
is fixed by turning full disk access for Alfred off and on again.
This workflow doesn't support notes stored with Google or other internet accounts. Please make sure either iCloud or On My Mac is selected as the default account in the preferences of Notes.app.
Result ordering and title+folder search behavior can be controlled using the environment variables.
By default, the workflow checks Github for updates if you run it and it's been 4 days since the last check. This can be disabled by removing the connections to the OneUpdater block in the workflow.
If you want to compile the binary yourself, you can go into the "search_notes" folder and do make
.
Big thanks to...
If you enjoy using this workflow, consider donating!