brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Option-Delete removes a whole word, Fn-Delete deletes forward on a Mac

macOS
~/tips/tip-macos-option-delete-fn-delete

Option-Delete delete the word to the left

Delete text a word at a time, or to the right of the cursor.

A MacBook keyboard has one Delete key and it only deletes to the left, one character per press. Two modifiers make it a lot more useful.

Hold Option and Delete removes the whole word to the left of the cursor. Hold Fn and the same key deletes to the right, which is what a Forward Delete key does on a full-size keyboard.

Option-Delete    delete the word to the left
Fn-Delete        forward delete (one character to the right)
Control-D        same as Fn-Delete
Option-Left      move the cursor to the previous word

When you mistype a word, I’d say Option-Delete and typing it again is faster than tapping Delete eight times. Fn-Delete is the one for fixing the start of a word without moving the cursor first.

An example: in “the the server”, put the cursor after the first “the ” and press Option-Delete once. Or put it before the second “the” and press Fn-Delete four times.

On a full keyboard with a separate Forward Delete key you don’t need Fn at all, Apple notes Fn-Delete is meant for keyboards without one. In Finder, Command-Delete is something else entirely: it moves the selected file to the Trash, so watch which window has focus before you reach for the Command key.

Further reading: Mac keyboard shortcuts (Apple Support)

More macOS tips System Settings > Accessibility > Hover Text > When using the pointer A Smart Folder in Notes collects notes by tag, checklist or date Type # in a Mac note to tag it, then filter by tag in the sidebar tmutil isexcluded ~/Projects/app/node_modules Crop an image in Preview by dragging a frame and clicking Crop All macOS tips (99) All topics

Link