Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use the Command key to get to document extremities Apps
I don't know if this was ever posted(I couldn't find it in the archives) but if you hold the command key, when in a text document, and press any of the arrow keys, the cursor will move to that extreme: right arrow moves to end of line; left to begining of line; up to beginning of document; down to end of document. You can use this to select text as well by holding shift (it only works when going up or down).

[robg adds: I believe this will only work in Cocoa apps and certain Carbon apps, such as BBEdit. It doesn't work in Word, for example.]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[6,323 views]  

Use the Command key to get to document extremities | 11 comments | Create New Account
Click here to return to the 'Use the Command key to get to document extremities' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use the Command key to get to document extremities
Authored by: notmatt on Dec 02, '03 11:24:48AM

It may not work in Word 'cause Word attempts to mimic the Windows key bindings, rather than the standard Mac ones; it's not the best general compatibility test.



[ Reply to This | # ]
Use the Command key to get to document extremities
Authored by: deuce5crildo on Dec 02, '03 02:15:47PM

You can get the same effects in Word using the 'function' key in combination with the arrow keys.



[ Reply to This | # ]
Use the Command key to get to document extremities
Authored by: PancakeMan on Dec 02, '03 05:06:10PM

Is there any way to customize this in Word to match OSX (or vice versa)? I wish my fingers could just learn one way of navigation that works in Word and Mail the same way.



[ Reply to This | # ]
Use the Command key to get to document extremities
Authored by: earthsaver on Dec 02, '03 11:27:40AM

Shift has been an available keyboard shortcut for highlighting text for as long as I can remember. It worked in the early versions WordPerfect for DOS, for example. I don't know where it started.

So, naturally, it can be combined to highlight text by character (shift+left/right), by word (option+shift+left/right), by line (shift+up/down), and by paragraph (option+shift+up/down). As well, one can use command+shift+left/right to select to the beginning or end of a line and command+shift+up/down to select to the beginning or end of a document.

---
- Ben Rosenthal
Lombard 400 512 MB RAM OS X 10.3.1



[ Reply to This | # ]
Use the Command key to get to document extremities
Authored by: JayBee on Dec 02, '03 11:34:23AM

Wow! I can't believe this has never been hinted! Craziness. I get so used to using these shortcuts when coding in BBEdit that I look like a complete fool in Notepad if I need to do any work on an XP box. And considering that I teach a JavaScript nightclass on XP, I tend to look like a fool quite a lot ... ;-)



[ Reply to This | # ]
Use the Command key to get to document extremities
Authored by: Durandal on Dec 02, '03 01:42:12PM

Hey, cool! I've been wondering if OS X had equivalent behaviors for Windows' Home and End keys, which take you to the beginning and end of each line, respectively. Great to see that there's a solution.

---
Damien Sorresso



[ Reply to This | # ]
Sometimes...
Authored by: DanPritchard on Dec 03, '03 02:16:39PM

It depends on what app you're using, though.
On almost any one-line text field, such as Safari's address or search bars (or one-line form fields in a webpage), "Up-arrow" and "Down-arrow" serve as home and end.

In Word, you have to use the actual "Home" and "End" keys (Fn-left and Fn-right on my PowerBook G4).

In TextEdit, there isn't a way as far as I know, to go to the beginning or end of the line.



[ Reply to This | # ]
Use the Command key to get to document extremities
Authored by: shneusk on Dec 02, '03 03:28:31PM

oh god, not to be a snob (I am one) but this is more material for system7hints.com

forever and ever, option arrow has been jump a word and command has gone to the end.



[ Reply to This | # ]
Use the Command key to get to document extremities
Authored by: biggyfishy on Dec 02, '03 09:00:24PM

Gotta be something said for new mac users :)

Well, in all cocoa text fields (at least) standard control key emacs bindings also work. This allows you to move around in your text without moving your hands from the letters to the arrow keys.

Try out CTRL+ the following:
a to move to the beginning of a line
e to move to the end of a line
p is equivalent to the up arrow (p for previous)
n is equivalent to the down arrow (n for next)
f for forward one character (I edited this to word)
b for back one character (similarly)
k for "kill" which cut to the end of the line
y for "yank" which pastes (these two use a unix clipboard so it doesn't affect the Mac OS X pasteboard)

And many more.
I find them very useful, especially a,e,k and y.



[ Reply to This | # ]
Use the Command key to get to document extremities
Authored by: colmc on Dec 03, '03 10:01:33AM

One for all the hunt 'n' peck typists.
You can use Ctrl + t to twittle (swap) the last two characters. So next time you type 'teh' on the 'h' just hit CTRL + t and volia 'the'



[ Reply to This | # ]
WORD does have commands like this
Authored by: stonemtn on Dec 03, '03 08:45:32AM

These ARE all available in Word, but with different combos:

Option+up or down goes to the beginning of the previous or next paragraph

Option+left or right arrows move you one word to the left or right

Command+End or Home bring you to the top or bottom of a document

Ctrl+up or down bring you to the beginning or end of a line (not a sentence, but a line)



[ Reply to This | # ]