Bug 311617

Summary: Allow swapping Ctrl+C (SIGINT) and Shift+Ctrl+C (copy)
Product: [Applications] konsole Reporter: sparhawk <kdebugs>
Component: keyboardAssignee: Konsole Developer <konsole-devel>
Status: REOPENED ---    
Severity: wishlist CC: a.samirh78, aspotashev, christian.reuschling, czarbug, discodex, oleh
Priority: NOR    
Version: 2.9.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description sparhawk 2012-12-13 05:56:29 UTC
In gnome-terminal and guake, if you assign Ctrl+C to "copy", it will automatically assign "SIGINT" (i.e. kill the current process) to Ctrl+Shift+C. I find this useful because I am always interrupting processes when I intend to copy instead. This keybinding makes Ctrl+C consistent across most of the KDE/linux suite.

Stems from a discussion here: https://forum.kde.org/viewtopic.php?f=227&t=108816

Reproducible: Always

Steps to Reproduce:
1. Attempt to assign Ctrl+C to copy.
Actual Results:  
It won't make Ctrl+Shift+C the new keybinding for SIGINT.

Expected Results:  
Make Ctrl+Shift+C the new keybinding for SIGINT.
Comment 1 sparhawk 2013-05-18 15:13:38 UTC
FWIW, for me, this feature request is important enough for me to switch to guake instead of using yakuake. I still get tripped up when using the terminal pane from dolphin though.
Comment 2 sparhawk 2013-05-18 15:15:06 UTC
(And I should say, with the resolution of https://bugs.kde.org/show_bug.cgi?id=280637 , yakuake is far superior in every other way to guake.)
Comment 3 sparhawk 2013-11-02 02:14:00 UTC
Due to deficiencies in guake, I've been testing other (drop-down) terminals recently. FWIW tilda will also automatically swap SIGINT to ctrl+shift+c if it conflicts with your copy key-binding.

Also, terminator identifies this problem too, although the implementation is imperfect IMO. If you bind ctrl+c to copy, then ctrl+c copies if text is selected, and sends SIGINT if there is no selection. (Hence you cannot send SIGINT with text selected. This is why I think solving this bug/feature request by binding ctrl+shift+c to SIGINT is preferred.)
Comment 4 Dave Manley 2014-01-07 15:47:49 UTC
Has there been any progress on the Terminator issue? Currently (and for the last month or two) I can't terminate the process in terminator. This is significant as terminator is key to my desktop layout. (I monitor a lot through ssh sessions).

I would be up for modifying the key binding to ctrl+shift+c but I do not know where to set this.
Comment 5 sparhawk 2014-01-11 10:56:51 UTC
Dave Manley: this is a bug filed against Konsole and Yakuake, not Terminator.
Comment 6 Dave Manley 2014-01-11 21:55:22 UTC
Thanks for the heads up. I will look into that.
Comment 7 sparhawk 2015-08-18 00:48:32 UTC
I reinstalled yakuake 2.9.9 to test, and not only is this issue still present, I can't even find a way to rebind the copy and paste shortcuts. They appear to be hard coded to Shift-Ctrl-C and Shift-Ctrl-V.
Comment 8 AlexCzar 2018-02-01 08:17:07 UTC
So, this is still a problem in 2018, 6 years after initial report.
Any updates?
Comment 9 sparhawk 2018-02-01 08:27:10 UTC
I'm still using Terminator. :D
Comment 10 Ahmad Samir 2018-02-28 12:21:04 UTC
You can swap Ctrl+C and Shift+Ctrl+C using the konsole key bindings editor, for example edit the "Default (XFree4)" schema (in Edit current profile -> Keyboard -> Edit) and add these two entries:
C-Shift+Ctrl \x00
C+Shift+Ctrl \x03

the first one (IIUC) sets Ctrl+C to send no escape sequence / control characters, and the second one sets Ctrl+Shift+C to send the ETX (end of text) control character i.e. ^C (what you'd normally get with Ctrl+C). Given, it's a bit hard to configure, but it's doable in konsole.

For more info about editing the konsole key bindings, have a look at:
https://cgit.kde.org/konsole.git/tree/data/keyboard-layouts/README.KeyTab

Closing as this can be achieved in konsole.
Comment 11 Oleh Prypin 2018-03-01 07:59:59 UTC
It is still not possible to change the key combination for "copy" in Yakuake, Kate, Dolphin.

It is still not possible to use a key other than Ctrl or Alt for sending escape sequences
Comment 12 Ahmad Samir 2018-03-01 09:51:12 UTC
(In reply to Oleh Prypin from comment #11)
> It is still not possible to change the key combination for "copy" in
> Yakuake, Kate, Dolphin.
>
IIUC, that's a limitation in konsole part, it'll always use the default konsole shortcuts, there's currently no way to set custom ones.

> It is still not possible to use a key other than Ctrl or Alt for sending
> escape sequences
That's a different issue; you can open a separate report about that.
Comment 13 oOdd 2020-04-17 12:17:53 UTC
Currently there is (still?) no way to rebind the copy and paste shortcuts in Yakuake - you can change them in the context menu after right click to 'copy' or 'paste', but it is only for the current split, and it is not persisted, so you have to do it everytime for each split.