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?
- 7,215
- 35
- 97
- 142
-
Hi stan, @Per Lundberg. Did you find out a way to copy on select in KDE? I am also searching for the same. – 300 Oct 22 '18 at 19:53
3 Answers
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.
- 60,938
- 25
- 191
- 216
-
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 Sep 21 '17 at 19:08
-
@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 Feb 22 '18 at 08:56
-
On a fresh Kubuntu 20.4 install, Ctrl+Insert doesn't do anything but echo `5~`. – Dan Dascalescu Feb 14 '21 at 06:09
-
@DanDascalescu, I just hit this. Had to manually configure the shortcut to Ctrl+Ins. – Leonardo Jan 18 '23 at 16:57
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 SIGINT 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.
- 434
- 4
- 16
-
1`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 Apr 09 '18 at 20:57
-
-
In the IntelliJ idea terminal, it's possible to use `CTRL+C` to send a `SIGINT` if nothing is selected, or copy when selecting text. Is there a way to keep this behavior in konsole? – Simon Tran Sep 12 '22 at 17:15