-
Notifications
You must be signed in to change notification settings - Fork 281
Description
Smart Copy is a cool feature. But it introduces a small usability problem: if a user inadvertently selects some text (perhaps in the scrollback), pressing Ctrl-C to terminate some foreground program won't do anything, as this will just copy the text in clipboard and do nothing else. The solution is to clear the selection manually (click somewhere on the window so nothing is selected), and press Ctrl-C again.
The Kitty terminal emulator has a feature where Ctrl-C can be set to copy and clear selection, which effectively provides a nice solution to the above problem: first Ctrl-C will copy the text in clipboard, also clearing the selection, the second Ctrl-C will terminate the foreground program.
As people tend to press Ctrl-C multiple times when their intention is to send a SIGINT, it feels very natural, and instead of an option I would argue this behaviour should be enabled by default.