Deprecated: Return type of I::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 62

Deprecated: Return type of I::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 91

Deprecated: Return type of I::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 71

Deprecated: Return type of I::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 101

Deprecated: Return type of I::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 53

Deprecated: Return type of Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/collection.php on line 80

Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /home/public/kirby/toolkit/lib/url.php on line 135
One Tap Less | Keys for Writers in Drafts

Keys for Writers in Drafts


Warning: Trying to access array offset on value of type null in /home/public/kirby/vendors/parsedownextra.php on line 241

Warning: Trying to access array offset on value of type null in /home/public/kirby/vendors/parsedownextra.php on line 241

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/public/kirby/vendors/parsedownextra.php on line 241

As I use Drafts further more, I built actions to aid my writing. In this article I'll share 4 actions I use all the time whenever I write in Drafts.

View clipboard

Did you ever forget what's on your clipboard while you cut and paste bits of text across your document? This action displays a simple prompt with your clipboard and two options: Paste or Cancel.

Get the View Clipboard action here.

I prefer to trigger this action from the action drawer instead of the enhanced keyboard, all the other actions in this article will be triggered as script keys.

Moving cursor between words

Drafts has a built-in script keys to move the cursor between words, you can access those and other commands by tapping the pencil icon in the enhanced keyboard to edit your keys, then the plus icon to create a new key and selecting Command, there you'll find cursor interactions, undo/redo actions and a toggle between light and dark themes.

I developed my own alternative because I dislike how the aforementioned handles selected text, the built-in key will deselect any text and move to the next word, my version expands the selection by word. If you ever had to select text on iOS you can see the advantages of my approach.

Get the script key to move the cursor left by word here and to move the cursor right by word here.

Select nearest word

As you may presume, I'm displeased by selecting text on iOS and this action selects the word closest to the cursor in a tap, then I can use the previous keys to expand my selection into any direction if I wish.

Get the script key to select nearest word here.

Short and sweet

There are plenty more actions and script keys for Drafts that you may appreciate in the official directory. A few more I use:

  • Title case: An improved version written by Dr. Drang to convert selections to title case.
  • Get symbol: My own port to my action to pick any symbol from Symbolay and place it your document.
  • Smart parenthesis: opens and closes parenthesis, it is one of those simple tweaks that will change your life forever.
  • Paste: Another tiny convenience I can't live without.

Enjoy!