Tech Reflect
  • Home
  • About This Site
  • Contact me
  • Search Icon
Delete previous word or path item in Terminal

Delete previous word or path item in Terminal

2018-06-12

In pretty much any Cocoa app, option-delete is an incredibly useful shortcut to delete the previous word or path component. If you mess up typing a word, for example, you can start fresh instead of having to use the mouse/trackpad or hit backspace multiple times. For paths, it’s great for when you want to remove a few components from the end of a path.

In Terminal, however, this is not possible by default. You can enable a command in the Edit menu called “Use Option as Meta Key” and it will restore this Cocoa editing behavior.

You can also enable it on a per-theme basis in the Keyboard tab.I find this incredibly useful in quite a few scenarios.

  • You make a typo and it’s just quicker to do option-delete and retype the word
  • You’re typing a command and you’ve messed up the flags or perhaps the ordering of arguments and you want to redo only part of the command
  • You’re typing a path and you realize it’s incorrect. In this case, option-delete becomes a way to go up one level in the hierarchy.

Extra credit

Option-arrow will move forward or backwards one word without deleting.


macOS tips

Post navigation

NEXT
How to easily create documentation
PREVIOUS
App Switcher tricks
Comments are closed.

Get Monthly Updates

Recent Posts

  • Inserting random email sigs in Mail on iOS
  • Keep Instagram open to finish posting…
  • How I predicted the rise of Twitter, barely used it, and amassed 35,000 followers
  • Apple Books 2022, in pictures
  • Killing one bird with two-and-a-half stones in Mac OS X Mail

Categories

  • analog (1)
  • apple career (12)
  • apple inside (19)
  • apple stories (20)
  • bertrand serlet (3)
  • bugs (3)
  • essays (15)
  • geeky (21)
  • interviews (4)
  • iOS tips (4)
  • Mac OS X (7)
  • macOS tips (36)
  • personal (8)
  • predictions (1)
  • products (5)
  • prototypes (6)
  • scott forstall (7)
  • scripting (2)
  • siri (2)
  • steve jobs (16)
  • tim cook (1)
  • workplace (15)

Get Monthly Updates

About cricket


Me with Guiness the owl

25 years in tech. I like to write manifestos. I like to offer interesting tips. I like making fun of things. Everyone copes differently.

My Other Blogs

  • Free Range Parrots
  • Plucky Tree (personal)
© 2025   All Rights Reserved.