Writers & Coders: Save Time With this Keyboard Maestro Macro

by Sean McCabe

Jump your cursor to the middle of a line instantly.

I made a set of two Keyboard Maestro macros (download ↓) that jump your cursor to the middle of any line when editing text (from either the left or the right).

This is useful for writers or coders for navigating text without switching their hands from keyboard to mouse.

Such an option doesn’t exist with the built-in macOS keyboard shortcuts.

The built-in text navigation shortcuts on macOS are nice:

  • ⌘ + → (Command + Right Arrow): Move to the end of a line.
  • ⌘ + ← (Command + Left Arrow): Move to the beginning of a line.
  • ⌥ + → (Option + Right Arrow): Move to the end of a word.
  • ⌥ + ← (Option + Left Arrow): Move to the beginning of a word.
  • ⌥ + ↓ (Option + Down Arrow): Move to the end of a paragraph.
  • ⌥ + ↑ (Option + Up Arrow): Move to the beginning of a paragraph.

But I still find myself having to mash ⌥ + → (Option + Right Arrow) a bunch of times to get to the middle of a line.

Cursor to Middle of Line Macros

The two Keyboard Maestro macros in the download below ↓ count the number of words between your cursor and the end, or beginning, of a line, respectively. The macro then moves your cursor half as many words—enabling you to move faster by continually splitting the difference.

Using this macro, you can quickly jump to the middle of the line—where you’re usually only a keystroke or two away from where you need to be.

💡 Tip: Even if your cursor is part way into a line, the macros will move your cursor to halfway between where your cursor currently is and the end of the line. This makes it faster to get your cursor anywhere you want to go.

Installing the Macros:

  1. If you don’t already have it, download Keyboard Maestro
  2. Download Macros: cursor-to-middle-of-line.kmmacros
  3. Double click to open the macros in Keyboard Maestro
  4. Once imported, you may need to right click to enable the macros (see below image)
  5. There are two macros: one for reaching the middle of the line from the left and one for reaching the middle of the line from the right. I use ⌘ + ⌃ + → (Command + Control + Right Arrow) and ⌘ + ⌃ + ← (Command + Control + Left Arrow), respectively.

You may also like