Write jrnl.sh entries on iOS and sync anytime.
Using a Siri Shortcut, write entries in jrnl.sh
format on your iOS device. The entires are appended to a plaintext file, which can be synced to your computer using iCloud Drive. It can then be synced to your main jrnl.sh journal using the provided shell script.
Add a new journal entry from iOS:
- Open your text editing app of choice (I prefer Drafts).
- Write your journal entry.
- Open the share menu.
- Share using the
jrnl
Siri Shortcut.
Sync your iOS entries with your main journal:
- Open your shell.
- Type
jrnl-sync
. - If there are journal entries to sync, it will sync them.
- Make sure you have installed jrnl.sh.
- Install and run the jrnl-sync script once (see below).
- Install jrnl iOS Shortcut.
Copy and paste the following one-liner into your shell.
curl -LJO https://raw.githubusercontent.com/lkdm/jrnl-sync/main/install.sh && bash install.sh; rm -f install.sh
Make sure you can access the Siri Shortcut from the Share menu in iOS.
This will preserve the date and time of the entry was written on iOS, rather than the date and time you performed the import. Huge improvement if you care about what time the entry was actually written.
I personally like to use Drafts.app to write entries, from which I can append them to a journal using the Share menu.
I have not tested it, but I don't see why not.
This is caused by jrnl.sh
not respecting the first timestamp in a file, and prepending its own timestamp (time of import). To get around this, I create a dummy entry then delete it. The dummy entry has instructions on how to delete them, if the script fails to clean them up.