3

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.

1

2 Answers 2

7

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

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

2
  • 1
    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> Commented May 26, 2016 at 3:06
  • 1
    Ah 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
    Commented May 26, 2016 at 4:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .