KDE Konsole to select text and copy to clipboard

12

2

In Ubuntu Terminal, drag and drop selection can copy the text selected into clipboard and Shift+Insert to paste. In KDE Konsole, it seems selection doesn't do copy. So either I have to use mouse middle key to copy/paste, or open context menu to click on copy. Is there any way to configure Konsole to do copy selection? Or any keyboard shortcut to do copy?

Stan

Posted 2012-03-11T15:50:14.793

Reputation: 6 535

Hi stan, @Per Lundberg. Did you find out a way to copy on select in KDE? I am also searching for the same. – 300 – 2018-10-22T19:53:03.580

Answers

14

Konsole can copy with ctrl + shift + c, and paste with ctrl + shift + v. My right click context menu on Konsole 2.7.4, KDE 4.7.4, Kubuntu 11.10, tells me these keyboard shortcuts.

Edit: There is actually a secondary buffer. Selected text is automatically added to this buffer, and middle click automatically pastes it. ctrl + shift + insert will also paste from this buffer. This can be changed under Settings > Configure Shortcuts > Paste Selection. ctrl + insert defaults to an alternate for normal copy, and shift + insert defaults to an alternate for normal paste.

Bob

Posted 2012-03-11T15:50:14.793

Reputation: 51 526

Thanks, great to hear about the secondary buffer @Bob. Is there any way to get Konsole to automatically copy to the default clipboard on selection? – Per Lundberg – 2017-09-21T19:08:12.927

@PerLundberg Not that I'm aware of, but I have not used Konsole in years. You're probably better off asking a new question. – Bob – 2018-02-22T08:56:06.627

1

Settings > Manage Profiles > New Profile > Mouse > "Copy on select"

John Galt

Posted 2012-03-11T15:50:14.793

Reputation: 11

Can also be set on standard profile instead of creating a new profile – yasd – 2019-10-06T08:09:50.323

0

Click "Settings" in the Menu. Select "Configure Shortcuts". Search for "Copy" and "Paste". For each you then assign the desired shortcut by first clicking on the entry in the shortcut editor, clicking on "Custom" and then pressing ctrl - c and ctrl - v, respectively.

However, I would advise against using ctrl - c, because normally this is bound to send a SIGTERM signal to an application in the terminal. This can become usefull if an application in the terminal needs to be aborted. The way these terminal control keys are handled can also be configured in Konsole. For this you go to "Settings", then "Manage Profiles", then "Edit Profile". Here you click on the "Keyboard" tab, where you then can edit the existing configurations or add a new one.

Christian Herenz

Posted 2012-03-11T15:50:14.793

Reputation: 366

Ctrl+C generally sends SIGINT, not SIGTERM (calling kill without specifying a signal will send SIGTERM). The signal that is sent can be relevant if an application has implemented a signal handler. Some applications will catch SIGINT and/or SIGTERM and shut down gracefully. SIGKILL cannot be caught, so kill -9 is the guaranteed way to stop a misbehaving application (and maybe lose data). – SJL – 2018-04-09T20:57:40.897