Apple Shortcuts - Share your ideas!

I have several Shortcuts that help me keep my daily note/journal updated throughout the day. The one that gets used the most is my habit tracker.

Because Obsidian is just a text file, I don’t even use Obsidian mobile for this, it just grabs the contents of the text file, modifies it, then resaves it back to the original location. I keep all the habits in the YAML front matter, and present it on the page in a table using Dataview. I also keep a monthly table on a “Dashboard” page that shows my habits over the course of a few weeks.

Here’s what it does:

  1. Get today’s note from my “Dailies” folder (you’ll need to change this if you use it)
  2. Split the text at the “—”
  3. Grab the second item of the split text (this is everything between the "—"s. It’s a few more lines than just my habits, but this way as the habits I’m tracking change, I won’t need to update the Shortcut)
  4. Split that by new lines, this puts each line of the YAML as its own object in Shortcuts.
  5. Choose from list. (By using the actual document to create the list on the fly instead of programming the list in Shortcuts, the options can change as the habits I track change, and I get the added benefit of seeing what I’ve already completed)
  6. Save that as a variable to use later in text replacement
  7. Present another list of emoji icons. I rate each habit on a 1-5 scale using colors.
  8. Replace the text in the file (ex. replace “meditation:” with “meditation: :green_circle:”)
  9. Save the file back to original location.

I should really write this up on the blog…

https://www.icloud.com/shortcuts/5fc5aa7bb83a42ada5841d91a3aa07e8

6 Likes