Mac 101: Keyboard text selection
For someone who loves keyboard launchers like Quicksilver, I have to confess an embarrassing deficiency in my keyboard competency: I've never really learned to select text with the keyboard. So I thought the topic would make for a nice beginning of the year Mac 101. The keyboard text selection commands on the Mac are basically standard. To select text you hold down the SHIFT key and then use the arrow keys or HOME, END, PAGEUP, and PAGEDOWN. The left/right arrow keys (plus SHIFT) will increase the selection one character in that direction, if you hold down the OPTION (?) key the left/right arrows will select an entire word in that direction, and if you hold down the ? key the left/right arrows will select to the beginning or end of the line. The up/down arrow keys (plus SHIFT) will select a full line up or down; with the OPTION key held down the up/down arrows will select a paragraph. The HOME key (plus SHIFT) will select all the text to the beginning of the document and the END key (plus SHIFT) will select all the text to the end of the document. Finally, the PAGEUP and PAGEDOWN keys (plus SHIFT) will select a full "page" up or down.
Basically the upshot is this: hold down the SHIFT key while in a text field and it will shift to text selection. Also, if you use the keyboard shortcuts without the SHIFT key they will move the cursor without selecting text. If you play around with and internalize these commands I think you'll find that keyboard text selection is often faster than moving your hand to the mouse. These commands can be really handy if you're selecting text in very small boxes where you can't see much (e.g. long names in open and save dialog sheets). One proviso: these shortcuts should work in all Cocoa applications, but they may not all work in non-Cocoa ones.
Share
For someone who loves keyboard launchers like Quicksilver, I have to confess an embarrassing deficiency in my keyboard competency: I've...
Add a Comment
How do you delete text to the right of the cursor? (like what the "delete" button does on a windows keyboard)
January 10 2008 at 11:56 AM Report abuse Permalink rate up rate down ReplyI'm sure Andrew got his answer two months ago, but for anyone else who happens across this 101 article...
How do you delete text to the right of the cursor? (like what the "delete" button does on a windows keyboard)
If you have a wireless aluminum keyboard or a MacBook, you can delete one character to the right by holding down the "fn" key while you hit the "delete" key.
If you have the wired aluminum keyboard, there is a dedicated "delete [x>" key (just to the left of the "end" key above the arrow keys) that does the same thing.
It may be also note worthy that:
apple + shift + delete: Deletes the text from the cursor to the beginning of that line.
option + shift + delete: Deletes the entire word to the left of the cursor.
My favorite is the two completely different models of selection extension. Do the following: select two lines with the mouse. Hit shift-down twice on the keyboard, then shift-up. In some apps, you will now have three lines selected (2+2-1); in others, five (2+2+1). IIRC, the "Classic" model, presumably going straight back to MacWrite (and certainly back to Word 4.0, my first experience with text editing), is the former; I tend to think of the latter as the "BBEdit" model, as that's where I think I first encountered the damn thing.
January 03 2008 at 1:21 PM Report abuse Permalink rate up rate down ReplyI agree with Mr. Massey. i'm a programmer and i use keyboard shortcuts like these ALL the time... but I found that on the Mac, they're not consistent from app to app (even without using MS Office).
This has been very frustrating for me and it's actually one of my biggest gripes with OS X in comparison to Windows. =T
I'm samsies on this being a downgrade from the window's text selection. Likely one of my top issues with converting to OS X (#1 being the loss of mspaint!).
I was unaware of the word/paragraph selection with the option key, that could become useful if I remember to use it. Thanks for the hot tip.
It also would be very handy if the Home, End, Page Up, and Page Down keys were labelled with text, rather than some esoteric icons on my C2D iMac wireless keyboard.
January 03 2008 at 12:31 PM Report abuse Permalink rate up rate down ReplyOh, would that it were that easy! Try that in pages, or Mail. There Home and End go to the start and end of the document. In some apps, Command-Shift right is to move one word, others it moves an entire line. Some apps recoginze good old Ctrl-e/Ctrl-a to start and end of line. Others don't.
This is the worst bit of inconsistency in the MacOS X experience (about the only thing that really annoys me)
For emacs users: you can do the same with Control-Shift-F and Control-Shift-B.
January 03 2008 at 12:13 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Verizon Leather Sleeve for Tablets for $4 + free shipping
- Wicked Jaw Breaker Noise-Isolating In-Ear Headphones for $6 + free shipping
- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



12 Comments