Tech Reflect
  • Home
  • About This Site
  • Contact me
  • Search Icon
Click in Terminal window to move cursor

Click in Terminal window to move cursor

2017-03-09

When editing a document in Terminal, whether it be vi or emacs or your-favorite-text-editor, you can use keyboard commands to move the cursor around.

But unless you’re an expert, the commands can be hard-to-remember and tedious. It’s also not very Mac-like. A little gem in Terminal is that you can option-click inside an editor to move your cursor to that position. In the screenshot below, my cursor was near the bottom of the view and I option-clicked right between “option-click” and “here” in the middle of the document.

Note that this works regardless of whether it’s in insert mode or not (using vi terminology). For example, when I’m in command mode in vi, I can option-click anywhere in any line and type “dd” to delete it.

A simple tip and perhaps obvious to some, but in my experience, I see people waste a lot of time arrowing around or struggle with the text navigation commands of vi and emacs when good old fashioned clicking could help you out.

Related Posts:

  • Ultra high volume email workflow
    Ultra high volume email workflow
  • Old Dock tips that are still useful
    Old Dock tips that are still useful
  • Why is my own data least important in search?
    Why is my own data least important in search?

geeky, macOS tips

Post navigation

NEXT
Mailing list etiquette
PREVIOUS
Editing text with Cocoa text shortcuts

Get Monthly Updates

Recent Posts

  • Flower Power and Blue Dalmatian to the rescue?
  • “Why does Mail have to be so fucking complicated?”
  • This mouse has no tail!
  • Interview feedback and the Thumb-o-meter™
  • Buy a cactus, get hired

Categories

  • analog (1)
  • apple career (11)
  • apple inside (11)
  • apple stories (17)
  • bertrand serlet (3)
  • essays (15)
  • geeky (21)
  • interviews (4)
  • iOS tips (3)
  • Mac OS X (2)
  • macOS tips (37)
  • personal (7)
  • products (4)
  • scott forstall (7)
  • scripting (1)
  • steve jobs (14)
  • tim cook (1)
  • workplace (14)

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)
© 2022   All Rights Reserved.