[GH-ISSUE #159] Honor selection for copying via Ctrl-C? #95

Closed
opened 2026-02-27 10:15:42 +03:00 by kerem · 5 comments
Owner

Originally created by @cpfeiffer on GitHub (Apr 28, 2025).
Original GitHub issue: https://github.com/matze/wastebin/issues/159

Pressing Ctrl-C will always copy the entire paste, even if the user selected just parts of it.
IMHO it would be sensible to honor the user's selection (if any) and copy only that.

Originally created by @cpfeiffer on GitHub (Apr 28, 2025). Original GitHub issue: https://github.com/matze/wastebin/issues/159 Pressing Ctrl-C will always copy the entire paste, even if the user selected just parts of it. IMHO it would be sensible to honor the user's selection (if any) and copy only that.
kerem closed this issue 2026-02-27 10:15:42 +03:00
Author
Owner

@matze commented on GitHub (Apr 28, 2025):

IMHO it would be sensible to honor the user's selection (if any) and copy only that.

It does for me? On Firefox.

<!-- gh-comment-id:2834902923 --> @matze commented on GitHub (Apr 28, 2025): > IMHO it would be sensible to honor the user's selection (if any) and copy only that. It does for me? On Firefox.
Author
Owner

@cpfeiffer commented on GitHub (Apr 28, 2025):

Oh, indeed. It doesn't do that in chromium.

<!-- gh-comment-id:2834942401 --> @cpfeiffer commented on GitHub (Apr 28, 2025): Oh, indeed. It doesn't do that in chromium.
Author
Owner

@matze commented on GitHub (May 18, 2025):

I will close that due to browser implementation differences I cannot control without adding more JS and intercepting Ctrl-C.

<!-- gh-comment-id:2889097394 --> @matze commented on GitHub (May 18, 2025): I will close that due to browser implementation differences I cannot control without adding more JS and intercepting Ctrl-C.
Author
Owner

@makkarpov commented on GitHub (Nov 13, 2025):

If so, there should be an option to disable this feature entirely.

I have never needed "C" as a shortcut for copying an entire paste, and I have never used it that way. Yet this feature repeatedly interferes with the standard Ctrl+C command, which is used far more often. Even if I did need the full-paste copy action, I could simply use the mouse to click the "Copy" button on the screen — that is not something which needs a super-fast shortcut.

The most destructive failure case of this "feature" would be trying to copy a single line from the paste into the terminal and instead pasting the entire thing — line breaks, commands, and all. By the time you realized what happened, everything would already be executed.

<!-- gh-comment-id:3528058281 --> @makkarpov commented on GitHub (Nov 13, 2025): If so, there should be an option to disable this feature entirely. I have never needed "C" as a shortcut for copying an entire paste, and I have never used it that way. Yet this feature repeatedly interferes with the standard Ctrl+C command, which is used far more often. Even if I did need the full-paste copy action, I could simply use the mouse to click the "Copy" button on the screen — that is not something which needs a super-fast shortcut. The most destructive failure case of this "feature" would be trying to copy a single line from the paste into the terminal and instead pasting the entire thing — line breaks, commands, and all. By the time you realized what happened, everything would already be executed.
Author
Owner

@matze commented on GitHub (Nov 13, 2025):

Okay, okay, re-opening the issue.

<!-- gh-comment-id:3528551576 --> @matze commented on GitHub (Nov 13, 2025): Okay, okay, re-opening the issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wastebin-matze#95
No description provided.