Hi!
Can I make the cursor follow when I've done some scrolling via Page-Up/ Page-Down?
I mean... let's say: I've scrolled down 3 pages via Page-Down and now I want to go on editing right on this page. To do so, I must click with the mouse somewhere on the document. But is this possible by using the keyboard too? E.g., is there a Shortcut that positions the cursor right in the middle of displayed page?
Thanks for hints... Tom
On 27 Oct 2008, at 14:55, Mai Thomas wrote:
Hi!
Can I make the cursor follow when I've done some scrolling via Page- Up/ Page-Down?
I mean... let's say: I've scrolled down 3 pages via Page-Down and now I want to go on editing right on this page. To do so, I must click with the mouse somewhere on the document. But is this possible by using the keyboard too? E.g., is there a Shortcut that positions the cursor right in the middle of displayed page?
You can use shift-cmd-j to move the cursor to the Middle Visible Line. Also accessible in the 'navigation' menu.
Cheers, Nigel
Mai Thomas wrote:
Can I make the cursor follow when I've done some scrolling via Page-Up/Page-Down?
You can change this globally for all standard apps (including TextMate) by creating a custom keybindings file at ~/Library/KeyBindings/DefaultKeyBinding.dict. By default OSX maps the PageUp and PageDown keys to the 'scrollPageUp:' and 'scrollPageDown:' actions. The behavior you want is simply 'pageUp:' and 'pageDown:'.
Here's my DefaultKeyBinding.dict, which fixes Home and End too. See http://www.lsmason.com/articles/macosxkeybindings.html and http://manual.macromates.com/en/key_bindings for all the gory details.
{ /* home */ "\UF729" = "moveToBeginningOfLine:"; "^\UF729" = "moveToBeginningOfDocument:"; "$\UF729" = "moveToBeginningOfLineAndModifySelection:"; "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:";
/* end */ "\UF72B" = "moveToEndOfLine:"; "^\UF72B" = "moveToEndOfDocument:"; "$\UF72B" = "moveToEndOfLineAndModifySelection:"; "^$\UF72B" = "moveToEndOfDocumentAndModifySelection:";
/* page up/down */ "\UF72C" = "pageUp:"; "\UF72D" = "pageDown:"; }
-- Steve King Sr. Software Engineer Arbor Networks +1 734 821 1461 www.arbornetworks.com http://www.arbornetworks.com/