Skip to content

Smart Copy option to clear selection after copy #242

@1player

Description

@1player

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions