Skip to content
Prev 8054 / 15075 Next

?> as a valid help request

On 25-05-2011, at 18:32, Timothy Bates wrote:

            
Command-left arrow
Ctrl-A

And you can create a DefaultKeyBinding.dict in the directory ~/Library/Keybindings with  a mapping of the Home to the Cocoa cursor command "moveToBeginningOfLine:".
See http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html

For example, if you have a DefaultKeyBinding.dict file containing

{
    /* home  Shift+home*/
    "\UF729"  = "moveToBeginningOfLine:";
    "$\UF729" = "moveToBeginningOfLineAndModifySelection:";

    /* end  Shift+end*/
    "\UF72B"  = "moveToEndOfLine:";
    "$\UF72B" = "moveToEndOfLineAndModifySelection:";
}

Home will move the cursor to the start of a line
End  will move the cursor to the end of a line

Combined with a  shift key, these will select from the current cursor position to the start/end of line.


Berend