copy paste with ctrl+c

Bug #340604 reported by kang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Terminator
Fix Released
Wishlist
Jordan Callicoat

Bug Description

In Gnome-Terminal, if you change the copy clipboard to ctrl+c (instead of ctrl+shift+c) and ctrl+v, it handles this very nicely:

if you have something selected, ctrl+c will copy, if you don't, ctrl+c will send the regular interrupt

It would be nice to have the same functionality in terminator, thanks

Related branches

Chris Jones (cmsj)
Changed in terminator:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Jordan Callicoat (monkeesage) wrote :

Patch against r710 attached. I expanded the criteria from just working with copy being rebound to ctrl+c, to copy rebound to ctrl+anything. This allows copy to work correctly with, e.g., ctrl+d (or any other meaningful escape sequence); they would still be able to send the escape sequence if nothing was selected. (Personally, I don't think it's a good idea to bind actions to escape sequences, but I'm sure people will still do it regardless of what I think ;))

Revision history for this message
Chris Jones (cmsj) wrote :

Jordan: That's an interesting approach and I think it makes sense, but only if one accepts that rebinding to such sequences is a good idea.
I don't, however, I do have a standing policy of trying not to deviate too far from GNOME Terminal behaviours since many of our users will be used to that.

Given that we're not changing the defaults anywhere, and this patch wouldn't add any options that would mean documentation encouraging users to do silly things, I think it should be ok to apply. I slightly worry that it might confuse people when a key they chose to mean Copy also starts to kill things, but I struggle to imagine of anyone who willingly gives up the true meaning of Ctrl-C!

Applied to trunk in revision 705. Thanks!

Changed in terminator:
assignee: nobody → monkeesage
status: Confirmed → Fix Committed
Chris Jones (cmsj)
Changed in terminator:
status: Fix Committed → Fix Released
Revision history for this message
Malcolm Greaves (greaves-malcolm) wrote :

Is there a way to remap key bindings for control sequences? For example, is there a way to map SIGNIT (intr) to control-K? When I am using gnome terminal I have intr=^K (set using stty). This way, I can easily use Ctrl-K to send SIGNIT to a process and have Ctrl-C and Ctrl-V as copy and paste, respectively.

When I attempt to set Ctrl-C to Copy and Ctrl-V to paste, terminator rejects the settings. If I set the keybindings, then press close on the Preferences window, then reopen the Preferences window and select the Keybindings tab the set value for both Copy and Paste is Disabled.

I'm using terminator 0.96 on Ubuntu 12.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.