[done] Kill a line and don't change clipboard (Ctrl+Shift+L)

Request Features and Feature Changes

[done] Kill a line and don't change clipboard (Ctrl+Shift+L)

Postby vds2212 » Thu Feb 26, 2009 7:12 am

When I'm re-factoring code I'm copying block of code moving them to some other place. Pretty often I have something in the clipboard that I should find of position for. If I need to remove some lines to be able to past my code or, if looking for the right place, I want to remove some lines, I'm glad to have the possibility to kill a line with one stroke without loosing the content of the clipboard (Now I'm forced to hit three key: Home Shift-Down Del and Home is quite far on a portable ;-) ).

UltraEdit, PSPad and VisualStudio have this command (Ctrl+Shift+L) which kill the current line but don't modify the clipboard.

I'll be glad to have the same command in Editra.

Regards,
Vivian.

PS: I love Editra :-)
vds2212
User
 
Posts: 29
Joined: Mon Nov 17, 2008 2:44 pm

Re: Kill a line and don't change clipboard (Ctrl+Shift+L)

Postby cody » Thu Feb 26, 2009 1:14 pm

Sure, this is easily added. (will be different default keybinding as Ctrl+Shift+L is already used for Insert Newline Above).


Cody
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Re: Kill a line and don't change clipboard (Ctrl+Shift+L)

Postby cody » Sun Mar 01, 2009 8:52 am

Done,

Default Keybinding set to Ctrl+Shift+D.
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Re: Kill a line and don't change clipboard (Ctrl+Shift+L)

Postby vds2212 » Sun Mar 01, 2009 9:23 am

Thanks, I'll grab it right away from svn :-)

And I'll update the VisualStudio key binding.

Vivian.
vds2212
User
 
Posts: 29
Joined: Mon Nov 17, 2008 2:44 pm

Re: Kill a line and don't change clipboard (Ctrl+Shift+L)

Postby vds2212 » Sun Mar 01, 2009 9:49 am

It works perfectly :-)

Thanks.
Vivian.
vds2212
User
 
Posts: 29
Joined: Mon Nov 17, 2008 2:44 pm

Re: Kill a line and don't change clipboard (Ctrl+Shift+L)

Postby vds2212 » Sun Mar 01, 2009 12:05 pm

I was a bit too quick.

It works very well but when you kill a line the cursor goes to the previous line. So if you want to kill two lines you have to go to the second one and hit two times Ctrl+Shift+D

If cursor would go to the next one as it is for the cut line operation that when you want to kill two lines you have to go to the first one and hit two times Ctrl+Shift+D.

I find this second alternative a bit more intuitive. It is the choice that you did for the cut line operation and it is the choice of Notepad++, VisualStudio, UltraEdit and others.

Yours,
Vivian.
vds2212
User
 
Posts: 29
Joined: Mon Nov 17, 2008 2:44 pm

Re: Kill a line and don't change clipboard (Ctrl+Shift+L)

Postby cody » Sun Mar 01, 2009 5:22 pm

Fixed,

Thanks, it was just an off by 1 error
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Re: Kill a line and don't change clipboard (Ctrl+Shift+L)

Postby vds2212 » Mon Mar 02, 2009 10:48 am

Thanks :-)
vds2212
User
 
Posts: 29
Joined: Mon Nov 17, 2008 2:44 pm

Re: Kill a line and don't change clipboard (Ctrl+Shift+L)

Postby cody » Mon Mar 02, 2009 2:55 pm

vds2212 wrote:Thanks, I'll grab it right away from svn :-)

And I'll update the VisualStudio key binding.

Vivian.


That would be great, was going to ask about it. If you can send me the updated file again, I am planning to integrate this before the next release version.


Thanks,

Cody
User avatar
cody
Site Admin
 
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Re: Kill a line and don't change clipboard (Ctrl+Shift+L)

Postby vds2212 » Mon Mar 02, 2009 6:09 pm

Here you are :-)
Attachments
VisualStudio.zip
VisualStudio key binding
(502 Bytes) Downloaded 148 times
vds2212
User
 
Posts: 29
Joined: Mon Nov 17, 2008 2:44 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron