[TxMt] Re: Cursor following PageUp/PageDn
Steve King
sking at arbor.net
Mon Oct 27 15:31:45 UTC 2008
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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20081027/5ba0fcc3/attachment.html>
More information about the textmate
mailing list