edit icon indicating copy to clipboard operation
edit copied to clipboard

Delete Line keyboard shortcut

Open tofflos opened this issue 5 months ago • 3 comments

Visual Studio uses Ctrl+L. Visual Studio Code uses Ctrl+Shift+K.

tofflos avatar Jun 29 '26 23:06 tofflos

For now, you can ^X. It'll overwrite the clipboard, but... you know. Better than nothing.

DHowett avatar Jun 30 '26 17:06 DHowett

Hey @DHowett, I can create a PR for this if this is needed. We could add a copy boolean parameter to cut_copy. When copy is true, it would only copy the selection/line. The new command could then cut the line without copying it.

https://github.com/microsoft/edit/blob/861419d10e69485c6479e772db4f9cef2822b8d4/crates/edit/src/buffer/mod.rs#L2249-L2254

nos1dot618 avatar Aug 26 '26 20:08 nos1dot618

I'd like to follow the VS Code keyboard scheme and Ctrl+Shift+K cannot be replicated unless we have Kitty Keyboard Protocol support.

lhecker avatar Oct 19 '26 18:10 lhecker