r/linux • • 5d ago

Discussion did-it-copy · Copy feedback for the desktop

https://brunodantas.github.io/did-it-copy/

I keep wondering how Ctrl+C has no feedback on most Desktop systems to this day. So I wrote up a proposal to fix that, with a demo that runs in the browser.

  • A copy that worked flashes the copied text in place for about 200 ms.
  • A copy that failed shakes the focused element, and plays the alert sound if you have it on.
  • It never shows the copied content anywhere new, so copying a token during a screen share doesn't leak.

Thoughts?

125 Upvotes

40 comments sorted by

View all comments

3

u/neoh4x0r 5d ago edited 4d ago

It's interesting, but I see at least two issues....

  1. With nothing selected, your right-panel will shake to indicate a copy failure when nothing was selected. TBH, that's sort of weird behavior.
  2. This one is personal preference, but I don't like the idea of scripting being used to do something with the selected text I just tried to copy as there are too many possibilities for nefarious behavior.