MarkdownMonster icon indicating copy to clipboard operation
MarkdownMonster copied to clipboard

Prevent empty copy/cut from overwriting paste buffer

Open internationils opened this issue 1 year ago • 2 comments

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.

internationils avatar Aug 11 '24 13:08 internationils

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.

RickStrahl avatar Aug 11 '24 18:08 RickStrahl

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...

internationils avatar Aug 12 '24 12:08 internationils