[MonoDevelop] Ctrl-K change - opinions?

Patrick McEvoy patrick at villadays.com
Fri Mar 16 12:27:18 EDT 2007


In nano Ctrl+K deletes the entire line. I think both are good shortcuts 
to have.

Jeffrey Stedfast wrote:
> 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
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>   



More information about the Monodevelop-list mailing list