[MonoDevelop] Ctrl-K change - opinions?

Jeffrey Stedfast fejj at novell.com
Fri Mar 16 12:17:56 EDT 2007


http://bugzilla.ximian.com/show_bug.cgi?id=81151

Currently, Ctrl-K will delete the entirety of the current line, but this
behavior differs from Emacs so it drives me a little batty sometimes ;)

I'm not sure if the current Ctrl-K behavior emulates some other editor
out there (Ctrl-K doesn't do anything in Visual Studio nor SharpDevelop
afaict, or at least not bound to a delete-line action).

Anyways, I've created a patch against SourceEditorView.cs (which is
where DeleteLine() is implemented) to make it mimic Emacs Ctrl-K
behavior:


example with cursor in the middle of a line:

This is |line 1
This is line 2

<Ctrl-K>

This is |
This is line 2

<Ctrl-K>

This is |This is line 2


example at the beginning of a line:

|This is line 1
This is line 2

<Ctrl-K>

|
This is line 2

<Ctrl-K>

|This is line 2



Is anyone opposed to this change?


Jeff



More information about the Monodevelop-list mailing list