Tilix: How about implementing "natural copy & paste"?

Created on 12 Jul 2019  路  4Comments  路  Source: gnunn1/tilix

I used elementary OS default terminal in a VM the other day and I was greatly surprised for it uses natural copy & paste with traditional CTRL+C and CTRL+V, without simultaneous SHIFT.

When CTRL+C is pressed, the logic is:

if there's some selected text {
    copies it to clipboard;
} else {
    send the ^C to terminal;
}

CTRL+V works as expected.

Most helpful comment

Tilix already does this, go into keyboard shortcuts and change copy and paste to ctrl-c and ctrl-v. Tilix is smart enough to know when to copy and when to send the interrupt based on when something is selected.

All 4 comments

Tilix already does this, go into keyboard shortcuts and change copy and paste to ctrl-c and ctrl-v. Tilix is smart enough to know when to copy and when to send the interrupt based on when something is selected.

Great!

Thank you.

I've set those values already in tilix. My OS is Ubuntu 20.04. Even tho it copies the text, it also sends the usual signal (sigint i guess). So, it cancels the running foreground program.
For the preinstalled terminal program, it works fine.

image

Edit: It was due to the clipboard app (Diodon) I used. Changing to CopyQ solved the problem

Hello, although changing shortcuts does the trick, it sometimes won't send interrupt unless pressing twice when nothing is selected. Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wesselih picture wesselih  路  4Comments

brightmaraba picture brightmaraba  路  4Comments

vaijab picture vaijab  路  4Comments

tomtobac picture tomtobac  路  3Comments

lucascosti picture lucascosti  路  3Comments