‹ Guides

Tap to move the cursor, double-tap to select

Fixing a typo in the middle of a long command means tapping it. Copying a path or an address means double-tapping it — and getting the whole thing.

v26.8.2+ · Written

Tap where the typo is

You recalled a long command with ↑, or typed one out, and there is a mistake near the middle. Tap the character and the cursor goes there. Fix it, press Enter.

A shell prompt with the command git commit -m "fix the typo in the midle of this message" wrapped onto a second line; the cursor is at the very end
Before — “midle” is missing a letter, and the line has wrapped: “mi” ends the first row, “dle” starts the second. The cursor is at the end.
The same command; the cursor now sits on the d at the start of the second row
One tap on the “d” — the cursor is there, on the wrapped half of the line.
The command now reads fix the typo in the middle of this message
Type the missing “d” — “middle”. Nothing else in the command moved.

Three more places to tap:

It works over SSH and mosh alike.

Double-tap selects the whole thing

Double-tap a word to select it, then Copy. What changed is what counts as one word. Term now takes the whole of the things you actually copy from a terminal:

A path that wrapped onto the next line comes out whole too.

Output of ss -tln. The address 0.0.0.0:8000 is selected with a grip at each end, and a menu with Copy, Paste, Select all and Cancel sits above it
One double-tap on 0.0.0.0:8000. Address and port in one selection, with the grips at either end if you want to adjust it.

The edges are trimmed the way you would want. A path at the end of a sentence leaves the full stop behind, brackets and quotes around it stay out, and so does the colon after user@host in your prompt — double-tap the host name and you get the host name.

Tapping a link once still opens it, as before — see Tapping links.

When a tap does not move the cursor

Tap-to-move is for the command line at a shell prompt — bash, zsh, fish, or a program’s own one-line input. A few places it stays out of the way:

If you would rather move without taking your finger off the keyboard, slide across it — both work, pick whichever is closer.