Shortcuts (⌘→ & ⌘←) with Textmate and Snow Leopard
Don’t know why these two shortcuts (aswell as home and end buttons) stoped working in textmate after I upgraded to SL.
The solution (based on this post of the textmate blog) is simple: create and edit the DefaultKeyBinding.dic file:
Paste these bindings:
{
/* home */
"\UF729" = "moveToBeginningOfLine:"; /* home */
"@\UF702" = "moveToBeginningOfLine:"; /* command + left arrow*/
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
"$@\UF702" = "moveToBeginningOfLineAndModifySelection:";
/* end */
"\UF72B" = "moveToEndOfLine:";
"@\UF703" = "moveToEndOfLine:";
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
"$@\UF703" = "moveToEndOfLineAndModifySelection:";
/* page up/down */
"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";
}
Restart Textmate & enjoy : )