It's a common action. Should have a shortcut.
Ctrl-k.ctrl+k is not very intuitive imo
I tried ctrl+shift+d (notepad2) and ctrl+y (intellij idea/jedit) and then googled
notepad++ used ctrl+shift+L
it seems there is no consensus here, but I think its better to use one of these. At least some people could guess right away
You're welcome to change your keybindings. And also, if you press Alt+g it will show on-screen a number of common keyboard shortcuts, including this one.
Ctrl-K was actually the way it's typically used with Nano. This seems fine.
70 should do that for you now with Ctrl-k.
"Delete" is not the same as "Cut". If I have something in the buffer, and want to delete some lines — I can't use "Cut the line".
@AlexWayfer, in nano, ctrl+k cuts a line. in vim, dd cuts a line
can you delete a line without cutting in these editors?
i think u must paste your buffer, cut the line, re-copy buffer
@AlexWayfer, in nano, ctrl+k cuts a line. in vim, dd cuts a line
can you delete a line without cutting in these editors?
Ctrl+K in nano doesn't overwrites system buffer (Ctrl+Shift+V)dd in vim: you can paste cut thing with p or system-wide with Ctrl+Shift+V in the insert mode.Ctrl+K in micro overwrites system buffer.mc (mcedit) has F8 for deleting line without cutting.ah i see, the system buffer is overwritten when cutting a line.
what would be a good fix for that?
ah i see, the system buffer is overwritten when cutting a line.
what would be a good fix for that?
I'm OK with the one buffer, system, instead of two, system + application. But I think there should be a shortcut for deleting a whole line, not cutting. I'm personally prefer Ctrl-Shift-Backspace, but it can be even F8, like in Midnight Commander. Atom Editor has Ctrl-Shift-K by default for this (without buffer changing).
Anyway, I think this issue should be opened because it's about deleting, not cutting.
You can rebind Ctrl-k if you would like or use a new keybinding entirely:
{
"CtrlK": "SelectLine,Delete"
}
You can rebind Ctrl-k if you would like or use a new keybinding entirely:
OK, thanks, it looks working. But Alt-g: show bindings still shows ^K Cut line — should it be a new issue?
Is there a way to modify the content of the bindings shown by Alt-g?
I modified CtrlK to delete a line rather than cut it, and was hoping I could update those shown by Alt-g to reflect this change.
Most helpful comment
Ctrl-Kwas actually the way it's typically used with Nano. This seems fine.