How do I cut a line in KDE Kate?

1

What is the keyboard shortcut to copy the whole current line to the clipboard and then delete it?

This is functionally equivalent to:

Home, Shift+, Ctrl+X

It's a common feature I use often in some text editors, such as:

  • notepad++ Ctrl+L
  • nano Ctrl+K (When used with Ctrl+U to paste.)

But it's not listed on this cheatsheet and I haven't managed to figure out how it's done in Kate.

Jeff Puckett

Posted 2016-05-25T19:53:41.513

Reputation: 244

The kate documentation is very useful https://docs.kde.org/stable5/en/applications/katepart/keybindings.html

– Gilberto – 2019-08-21T19:01:36.310

Answers

4

Finally stumbled across this today - I knew this basic functionality had to be somewhere already.

Ctrl + X when nothing is selected will cut the whole line after enabling the feature under the menu Settings > Configure Kate...

screenshot of kate configure menu

Jeff Puckett

Posted 2016-05-25T19:53:41.513

Reputation: 244

0

I have Kate for Windows installed, and provided there is more than one line,

Home, Shift+, Ctrl+X

does work.

If not then

Home, Shift+End, Ctrl+X

works instead

Paul

Posted 2016-05-25T19:53:41.513

Reputation: 52 173

Thanks Paul, yes that's what I'm currently using. I'm sorry my question wasn't clear on that. I was hoping for something shorter, like just <kbd>Ctrl</kbd>+<kbd>L</kbd> – Jeff Puckett – 2016-05-26T03:06:09.553

1Ah right, totally misunderstood. I don't think Kate has this natively, and doesn't have a macro system built in, because it originates on KDE and the expectation is that the desktop environment would handle that. Perhaps the best bet is to install AutoHotKey or similar and write your own shortcut? – Paul – 2016-05-26T04:18:35.040