Tech Reflect
  • Home
  • About This Site
  • Contact Me
  • Search Icon

Tech Reflect

Reflecting on 25 years in tech

Editing text with Cocoa text shortcuts

Editing text with Cocoa text shortcuts

2017-03-07

In any user interface element that accepts text, there are a set of text editing keyboard shortcuts that work in almost every application. Most are not listed in menus or only in certain applications.

Here’s a great link that documents most of the shortcuts. Note that the document is missing a few newer ones and there are a few that have changed since it was published, but this is the best resource I’ve found.

Cocoa Text System

Here’s a subset of them that I find particularly useful.

Keyboard shortcutAction
⌥ ⌫Delete the previous word (if you make a typing mistake and it spans multiple words, this is a really quick way to delete what you just typed)
⌥⇡ or ⌥⇣Move cursor to beginning or end of paragraph
⌘⇡ or ⌘⇣Move cursor to beginning or end of document
⇧⇡ or ⇧⇣Select upwards/downwards one line
⌥⇧⇡ or ⌥⇧⇣Select upwards/downwards one paragraph
⌘⇧⇡ or ⌘⇧⇣Select upwards/downwards to beginning/end of document
⌃⇡ or ⌃⇣Scroll one page up or down (most keyboards don't have dedicated keys for this anymore)
⌃AMove to beginning of line (super useful in Terminal)
⌃EMove to end of line


Related posts:

The Help menu in complex applications
Xcode nuclear option
Click in Terminal window to move cursor
The three different clipboards
Death of the (+) in web search
Backing up iCloud Drive

macOS tips

Post navigation

NEXT
Click in Terminal window to move cursor
PREVIOUS
The last time I saw Steve Jobs

Follow Me

Get Monthly Updates

About Me

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

Contact Me

My Other Blogs

  • Free Range Parrots
  • Plucky Tree (personal)
  • Little Dinosaur
  • Contact Me

Recent Posts

  • Getting paid to watch porn
  • Is App Library for me?
  • Tim Cook and the SF Gay Pride Parade
  • The first day we printed something in Mac OS X
  • Except for getting punched by Steve Jobs…

Categories

  • analog (1)
  • apple career (11)
  • apple inside (8)
  • apple stories (18)
  • bertrand serlet (3)
  • essays (15)
  • geeky (21)
  • iOS tips (3)
  • macOS tips (37)
  • personal (7)
  • products (3)
  • prototypes (2)
  • scott forstall (6)
  • scripting (1)
  • steve jobs (11)
  • tim cook (1)
  • workplace (14)

Archives

  • January 2021
  • December 2020
  • October 2020
  • August 2020
  • July 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017

Most Liked Content

  • Why I left Apple (2019)
  • Aperture: Senior QA (2004-2005)
  • The last time I saw Steve Jobs
  • Desktop Pictures taken by Steve Jobs
  • How I ended up at Apple (1999)

Get Monthly Updates

About Me

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

Contact Me

My Other Blogs

  • Free Range Parrots
  • Plucky Tree (personal)
  • Little Dinosaur
  • Contact Me
© 2021   All Rights Reserved.