Sub topic 6
Moving and selecting text faster
This chapter assumes you know the modifier symbols (⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift) and the core editing shortcuts from the earlier chapters. Here you will combine them to move the cursor and select text without the mouse.
The working model
Every text movement shortcut follows one pattern. The arrow key sets the direction. The modifier sets the size of the jump. Adding ⇧ turns the movement into a selection.
| Modifier | Left / Right | Up / Down |
|---|---|---|
| none | One character | One line |
| ⌥ | One word | One paragraph (in most apps) |
| ⌘ | Start / end of line | Start / end of document |
Once you know this grid, you do not need to memorize individual shortcuts. You only need to pick a direction and a size.
Moving the cursor
⌥← Move one word left
⌥→ Move one word right
⌘← Move to start of line
⌘→ Move to end of line
⌘↑ Move to start of document
⌘↓ Move to end of documentUse ⌥← and ⌥→ when you need to fix a typo a few words back. Use ⌘← to jump to the start of a long line instead of holding the left arrow key.
Selecting while you move
Hold ⇧ while pressing any of the movement shortcuts above. The text the cursor passes over becomes selected.
⇧⌥→ Select to end of word
⇧⌘← Select to start of lineA common sequence is ⌘→ to reach the end of a line, then ⇧⌘← to select the whole line. You can then copy it with ⌘C or type over it.
Pressing ⇧ with an arrow key again after you start a selection extends or shrinks it. If you select too far, press the opposite arrow with ⇧ still held to pull the edge back.
Deleting by word or line
The same size modifiers work with the Delete key (⌫).
⌥⌫ Delete previous word
⌘⌫ Delete to start of lineTogether with selection, this lets you rewrite a sentence in a few keystrokes. Press ⌥⌫ repeatedly to remove words one at a time, or ⌘⌫ to clear everything from the cursor back to the start of the line.
A worked example
Suppose you typed this line and want to replace everything after "Subject:".
Subject: Meeting moved to Thursday afternoon- Click anywhere in the line, or place the cursor at its end with ⌘→.
- Press ⌥⌫ three times to remove "afternoon", "Thursday", and "to". Each press deletes one word.
- Type the new ending, for example "Friday".
To replace the whole subject text instead, press ⌘→ and then ⇧⌘← to select the full line. Typing replaces the selection.
Common errors
- Selecting nothing. If ⇧ is released before the arrow key is pressed, the cursor only moves. Hold ⇧ first, then press the arrow.
- Confusing ⌘ and ⌥ on left and right. ⌘← goes to the line start, ⌥← only goes back one word. Check the modifier if the jump is too large or too small.
- Wrapped lines. In a word processor, "start of line" means the start of the visual line on screen, not the start of the paragraph. Use ⌥↑ to reach the paragraph start.
- Function keys on laptops. On some keyboards, Home and End behave differently from ⌘← and ⌘→. Prefer the ⌘ arrows, which work the same everywhere on a Mac.
Exercise
The cursor is in the middle of a line. Which keys select from the cursor to the end of the line, and which key combination then deletes that selection?
Show answer
Press ⇧⌘→ to select to the end of the line, then press ⌫ to delete the selection.
Exercise
You want to delete the last two words before the cursor without selecting them first. What do you press?
Show answer
Press ⌥⌫ twice. Each press deletes one previous word.