Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent empty copy/cut from overwriting paste buffer #1127

Open
internationils opened this issue Aug 11, 2024 · 2 comments
Open

Prevent empty copy/cut from overwriting paste buffer #1127

internationils opened this issue Aug 11, 2024 · 2 comments

Comments

@internationils
Copy link

When copy-pasting, it can happen that you

  • select some text
  • ctrl-C (or ctrl-X) it
  • switch to a different tab (or somewhere in the same tab)
  • click where you want to paste
  • accidentally hit ctrl-C instead of CTRL-V

This deletes the paste buffer since nothing is selected. If nothing is selected, ctrl-X/C should not touch the paste buffer.

@RickStrahl
Copy link
Owner

RickStrahl commented Aug 11, 2024

I've run into this as well, but... I don't think it's wise to break standard copy/paste behavior for our fat fingering. There are legitimate reasons for wanting to clear the clipboard with empty text.

Every other text editor has this same - standard - clipboard behavior.

@internationils
Copy link
Author

I'm switching a lot between a laptop keyboard and a full-sized normal keyboard and it's driving me nuts : ) That said, your logic makes sense. An Option might be nice though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants