Hi Greg, Thanks, as always, for the references and list of emacs key bindings that can be used as navigational shortcuts in TextEdit, Mail (and terminal).
I'm adding a link to the O'Reilly "Speaking of Emacs. . ." web page that describes some of this, and also contains some links that are less detailed than the one you give at the end of your post "for those who really want to know more". One minor correction? I think control-V only scrolls down one page in TextEdit, so it depends on the size of the TextEdit window; for long documents it won't take you to the end of the document. The O'Reilly page: http://www.oreillynet.com/mac/blog/2006/05/speaking_of_emacs and some of the references from a comment: <begin excerpt> [Comment by Jacob Rus, author of the document Greg cites] I wrote a better explanation of how to customize the text system here: http://hcs.harvard.edu/~jrus/site/cocoa-text.html A shortened version, with some cool stuff like setting an emacs universal argument key (NSRepeatCountBinding), etc. is at macosxhints: http://www.macosxhints.com/article.php?story=20060317045211408 And a list of all the default bindings, including ^a, ^v, etc. is here: http://hcs.harvard.edu/~jrus/site/system-bindings.html There's some really remarkably powerful stuff there, and changing your bindings will work across all Cocoa apps. <end excerpt> HTH Cheers, Esther P.S. You wouldn't have any good web links to regular expressions for Justin, would you? See discussion on doing copy and move of multiple files. He asked about doing multiple file moves in terminal Greg wrote: >Welcome to the wonderful and obscure world of emacs key bindings. Yes, >little known to all but the most dedicated geeks, the MacOS supports >emac style key bindings to more the cursor about and do other weird >and wonderful things in text fields of programs from TextEdit to Mail. >The best part is you can customize this and add new ones as needed. To >do this create a text file in the following location: > >~/Library/KeyBindings/DefaultKeyBlindings.dict > >That is in the Library directory of your home directory. Make sure the >file is named DefaultKeyBlindings.dict now cut and past the lines >below between the curly braces into that file and save it. > >{ > > "^>" = "moveToEndOfDocument:"; > "^<" = "moveToBeginningOfDocument:"; >} > >Now restart your text editing programs, Mail and so on. From now on >when you press Control-> you will go to the end of the document and >when you press Control-< you will go to the beginning of the document. >There are tons of cool things you can do with this. You can also screw >up your computer big time as well so be carful! > >Here are some keybinding to try out: > >End of Text Control-V >StartOfLine: Control-A >EndOfLine: Control-E >LineUp: Control-P >LineDown: Control-N >CharLeft: Control-B >CharRight: Control-F >Delete CharRight Control-D >Delete CharLeft Control-H >Cut all text to the right of the insertion point on the current line >Control-K (This is not the same as Command-X) >Open a new line at the insertion point Control-O >Paste text from Control-K Control-Y >Move down a line selecting as you do so Control-Shift-N >Move up a line selecting as you do so Control-Shift-P >Other movement key will select with Shift down as well. > >For those who really want to know more you should read: >http://www.hcs.harvard.edu/~jrus/Site/Cocoa%20Text%20System.html > > > > >Greg Kearney >535 S. Jackson St. >Casper, Wyoming 82601 >307-224-4022 >[EMAIL PROTECTED] > >On Mar 8, 2008, at 3:23 PM, Esther wrote: > >> Hi Tiffanitsa, >> >> You wrote: >>> I have trouble, in Text edit, getting to the beginning and to the end >>> of documents. I don't know if I'm hitting the wrong command or what. >>> Btw, I'm using a Macbook, so I don't have keys like home and end. >> >> To move to the beginning of a document on your MacBook use >> VO-keys-FN-shift-left arrow. To move to the end of a TextEdit >> document >> use VO-keys-FN-shift right arrow. >> >> For general information on all these navigation commands, I'm >> going to point you to Tim Kilburn's web page. Here's the >> description of TextEdit: >> >> http://homepage.mac.com/kilburns/voiceover/textedit.html >> >> Look through the list of VO Commands in TextEdit for information >> about reading through by sentence, paragraph, word, line, character, >> beginning and end of text in visitble window and in scrolling window, >> setting bookmarks and more. >> >> For your MacBook, look for the description that says, "On a >> laptop . . ." >> >> This page also covers items like setting tabs, selecting text, and >> spell checking, and will probably answer many of the questions >> you haven't had a chance to ask yet <smile>. >> >> HTH, >> >> Cheers, >> >> Esther >> > > > >
