iPhone Gestures and External Keyboard Shortcuts for Fast Markdown Writing
On iPhone, three touch habits and a handful of external-keyboard settings cover most of what makes Markdown slow on a phone: moving the cursor, selecting text and reaching punctuation. You don't need a new app to get faster. The controls iOS already ships will do.
Quick answer
Markdown is made of punctuation. Its syntax is built from punctuation characters chosen to look like what they mean, so asterisks, hashes and backticks are what you type most. On a phone, the syntax isn't the slow part. The trips to the symbol keyboard are, and so is placing the cursor.
Use gestures for editing: double-tap to select a word, hold the Space bar to steer the cursor, and use three-finger pinches and swipes for copy, paste and undo. Add an external keyboard when you write for longer than a few minutes. For short bursts where neither helps, try dictating notes on iPhone and cleaning up afterwards.
Step-by-step
Select without chasing grab points
Apple's iPhone guide lists the selection gestures:
- A word: double-tap with one finger.
- A paragraph: triple-tap with one finger.
- A block: double-tap and hold the first word, then drag the grab points.
In Markdown a paragraph is often the unit you want. Triple-tap one, then paste over it or retype it.
Turn the keyboard into a trackpad
Touch and hold the Space bar with one finger until the keyboard turns light gray and the characters disappear. Slide your finger to move the insertion point. To select, keep one finger down, touch and hold the keyboard with a second finger, then move the first finger. It's the quickest way to land between two backticks or inside a link's brackets.
Copy, paste and undo with three fingers
The same Apple page lists the three-finger gestures:
- Copy: pinch closed with three fingers.
- Cut: pinch closed with three fingers twice.
- Paste: pinch open with three fingers.
- Undo: swipe left with three fingers, then tap Undo at the top of the screen.
- Redo: swipe right with three fingers, then tap Redo.
Reorder lines by dragging
Select the text, touch and hold it until it lifts, then drag it somewhere else in the app. It's handy for reordering list items, and you skip the cut and paste.
Add an external keyboard
Apple documents using Magic Keyboard or another physical keyboard with iPhone. At the system level you get Command-Space to open Search. For more, turn on Full Keyboard Access under Settings > Accessibility > Keyboards & Typing. Its defaults include Tab and Shift-Tab to move between items, Space to activate one, Fn-H for the Home Screen, Fn-Up Arrow for the App Switcher, and Tab-H to list every available command.
Those are navigation shortcuts, not writing shortcuts. If you know Markdown keyboard shortcuts on Mac, expect the same habits to carry over inside an editor, with the caveat in the next section.
Remap modifier keys
Apple notes you can change what the Command key and other modifier keys do: go to Settings > General > Keyboard > Hardware Keyboard, tap Modifier Keys, tap a key, then choose its action. If your keyboard has a Caps Lock key you never use, this is where it earns a job.
Use text replacements for Markdown scaffolding
The same page describes text replacements, which expand a short trigger into a longer phrase (Apple's example is typing "omw" to get "On my way!"). The same idea works for Markdown. Pick a trigger you would never type by accident, such as ;h2, and set it to expand to ## . Add one for a task-list item, and one for a link skeleton. They're your own replacements, so pick triggers that fit your habits.
Common problems and fixes
A shortcut does nothing. iOS doesn't define Command-B or Command-I for every app. Each app decides. In Pages on iPhone, for example, pressing and holding Command shows the shortcuts for the selected item, and its list includes Command-B, Command-I and Command-K for bold, italic and links. Other apps may support fewer or different ones. Hold Command inside the app you write in and read what it offers.
Full Keyboard Access takes over Space and Tab. It's opt-in. If it gets in the way while you write, switch it off in Settings > Accessibility > Keyboards & Typing.
Autocorrect rewrites your punctuation. In Settings > General > Keyboard you can turn off Auto-Correction, Auto-Capitalization and Check Spelling and Grammar. Turning off Auto-Correction is worth trying if it keeps changing code or file names.
You want a bigger screen. The same ideas apply on the larger display; see iPad Split View and multitasking shortcuts for window management.
Doing this with Carets
The gestures above come from iOS, so they work in any text field. What an editor adds is the place to use them. Carets is a native notes and code editor for iPhone, iPad, and Mac, built for iOS and Mac rather than as a web wrapper. It opens Markdown, plain text and code in one editor, and organizes them into files, projects, and tags, so a note you start on your phone with a few gestures is the same file you finish on a Mac.
Download Carets on the App Store for iPhone, iPad and Mac.
Frequently Asked Questions
How do I move the cursor on iPhone without tapping?
Touch and hold the Space bar until the keys go blank and the keyboard turns light gray, then slide your finger. Hold a second finger on the keyboard to select text as you move the first.
Can I use an external keyboard with an iPhone?
Yes. Apple documents Magic Keyboard and other physical keyboards with iPhone. Command-Space opens Search, and Full Keyboard Access adds navigation shortcuts for the whole system.
Why don't Command-B and Command-I work in every app?
Those shortcuts are defined by each app, not by iOS. Hold Command inside the app to see which ones it supports.
How do I undo on an iPhone with the touch keyboard?
Swipe left with three fingers, then tap Undo at the top of the screen. Swipe right with three fingers for redo.