fbpx

FREE! Plan Your Ideal Week: Bonus Workshop + Planner  →  Get the Workshop

Appending Captured Text in Drafts to Daily Notes in Obsidian

Drafts has long been the place that text starts on my iOS device. But lately I’ve been doing a lot more in Obsidian, and was looking for a way to get that text into Obsidian easily when I was done. While this is pretty straightforward using a cloud service like Dropbox to sync your vault, I then began wondering if I could do something more than just dump my text files into a synced folder.

Turns out you can.

For the visual learners, here’s a video on the entire process:

Why Append to Daily Notes?

If you’re not familiar with the concept of Daily Notes, it’s basically a feature you can enable that creates a new note for each day you open the Obsidian app. I previously shared a video showing how I use this page for my daily journaling, but I know many people like to use these Daily Notes pages as the place to capture tasks, ideas, meeting notes, and the like. Backlinks make it easy to tie these notes to other related notes, so this is actually a pretty great workflow.

The problem is on iOS.

While Obsidian does have iOS apps that are currently in private beta, they’re not ideal for capturing for several reasons:

  1. Your vault needs to load when you open the app (takes several seconds)
  2. You have to navigate to the right note
  3. You have to navigate to the right spot in the note
  4. THEN you can capture your text.

That’s too much friction for me. With Drafts, I can just open the app and start typing. Once I set up a Drafts export action to append the text to my Daily Note in Obsidian, I can simply tap a button and be done.

Setting Up Obsidian

Before this will work correctly, you need to make sure Obsidian is set up correctly. There’s a couple steps to this:

  1. You need to make sure your vault (folder containing all the text files Obsidian looks at) is synced to the cloud. Theoretically you can use any cloud service, but I prefer Dropbox for this.
  2. You need to make sure that Daily Notes are enabled (you can toggle this on by going to Settings → Core Plugins → Daily Notes).
  3. You need to make sure that the Daily Notes settings are using the YYYY-MM-DD format (this is what Drafts uses in its date token).
  4. You need the folder for the New File Location (this is where we’ll tell Drafts to look for the files). Note that this is usually a subfolder inside your main vault folder.

Once you have these settings, we can go set things up in Drafts.

Setting Up the Drafts Action

The export action is actually pretty simple, but requires some specific formatting. Here’s how to set it up.

First, open the Drafts export actions and tap the + button to create a new action, then select New Action (we’re going to build this one from scratch).

Next, name the action and change the color and icon if you want.

Tap on Steps and select the Dropbox step under Services.

Now you need to configure this step correctly. Here’s the settings you want to use:

  1. The Name should be [[date]].md. The [[date]] is the Drafts date token, and .md is the file extension that Obsidian uses by default. This tells Drafts to look for the file YYYY-MM-DD.md as the target for our text.
  2. The Path must be set to your Daily Notes folder, relative to your Dropbox folder. For example, my Obsidian vault is located at /Users/XXXXXX/Dropbox/Notes/Daily Notes, so the path I use here is /Notes/Daily Notes/.
  3. The Template is what text will be sent. By default, the [[draft]] token will grab the entire text in Drafts and send it to the file.
  4. The Write Type should be set to append. This will place the text at the end of the Daily Note. If you prefer it appear at the beginning, you can use prepend instead.

That’s it! Now tap Save & Exit, and you’re ready to use your new export action.

Sending Text from Drafts to Obsidian

Now you can type your text and send it to Obsidian. You can tap the Drafts icon in the upper-right and select your action, or use just tap the name of the action in the bar above the keyboard.

Whatever text you type will be appended to the file in Dropbox and instantly show up in Obsidian.

One cool thing about this is that both Drafts and Obsidian can do special things on top of plain text. For example, if you want to send a task from Drafts to Obsidian, you could do that by using the plain text task formatting: a dash, followed by a space, then left and right brackets with a space in-between. Then when the text appears in Obsidian, you can switch to Preview Mode to interact with the task element and check it off. Here’s a screenshot of Edit Mode and Preview Mode side-by-side using the default Obsidian theme:

Bonus Nerdery

If you go back and edit the Drafts action, you can find a couple of other cool options if you scroll down a bit:

For example:

  • You can assign this action to an external keyboard shortcut.
  • You can add the action to Siri.
  • You can automatically archive or delete the text in Drafts once the action has been completed.

I usually don’t assign keyboard shortcuts because I’m primarily using Drafts on my iPhone, but I do like to automatically archive the text after it’s been sent to Obsidian. This helps me keep my Drafts inbox a little cleaner.