On 14 Jun 2008, at 07:24, Vadim Patsalo wrote:

I was hoping to make the following feature request: I've noticed that R.app uses the standard Ctrl-a and Ctrl-e to jump to the beginning and the end of the line on the console and in the editor. However, I have not found a way to clear the current line (akin to Ctrl-c, Ctrl-u, Ctrl-k in the shell of your choice). Would it be possible for the two to be added as key combinations? Is there a quick way to clear the current line that I am missing?

See:

http://hcs.harvard.edu/~jrus/Site/Cocoa%20Text%20System.html

For example, to implement ^u to clear the line, create the following text file:

~/Library/KeyBindings/DefaultKeyBinding.dict

with contents below:

{
        "^u"    = ("moveToBeginningOfLine:", "deleteToEndOfLine:");
}

Cheers,

Demitri

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to