Hacker News new | ask | show | jobs
by arnvidr 1267 days ago
>you'd have to jump to the beginning or the end of the line first, then hit Ctrl-k.

This is not correct, ctrl+k works anywhere on the line?

1 comments

It deletes to end of line.
Just tested in GNU nano, version 3.2, the default on Debian Buster, with default settings. Ctrl-K deletes entire line no matter where in the line you use it.
It's cutfromcursor in nanorc if you want the other behavior.

https://nano-editor.org/dist/latest/nanorc.5.html

I believe ctrl+k cuts the line. ctrl+u pastes the line, yea?
Well, yes. I was just matching the wording of the comment I was replying to.