Keyboard-Driven Cross-Linking in Drafts

I use Drafts as my text-processing tool of choice. I do all my actual writing in Ulysses, but when it’s time to prepare articles for my blog, my weekly site-members’ newsletter and so on, it’s Drafts I turn to. I think of it as the BBEdit for my iPad.

With the recent version 20.0, Drafts introduced cross-linking. You can use wiki-style links to open other documents (also called drafts, by the way) within the app; for example, a link like this: [[Some Other File]] can be tapped or clicked to open the draft entitled “Some Other File” (creating it if necessary). Needless to say, this is very useful for creating a repository of knowledge, a body of research, a plain-text household database, and so on.

Drafts is also very scriptable and customisable, so I decided to extend this functionality to fit how I work. First and foremost, I don’t like to take my hands off the keyboard, so I needed a way to navigate cross-links without needing to use a pointing device. I created an action for Drafts to do that, to which you can assign whatever keyboard shortcut you prefer. It works on a link that’s either part of the text selection in the frontmost draft, or is immediately adjacent to the selection or the insertion point. There are various other options you can tweak for yourself, as detailed below.

Continue reading “Keyboard-Driven Cross-Linking in Drafts”