Shapeshifter icon indicating copy to clipboard operation
Shapeshifter copied to clipboard

Elliminate duplicates in clipboard list

Open ffMathy opened this issue 6 years ago • 4 comments

We should detect and elliminate duplicate entries, and perhaps merge them (if there is a rich text representation in one but not the other, but the visual representation is the same, we merge the rich text and the normal representation into one clipboard package).

ffMathy avatar Apr 23 '18 12:04 ffMathy

Very good idea (it was implemented in v5?) as long as the detection is pretty dependable so it doesn't overwrite a different version of item since copying multiple slightly different versions of something is quite common. Eg copying a sentence of text before and after a type correction.

Potentially use a hash or Distinct type function would be great as long as it's trustworthy.

thegabrielstein avatar Apr 23 '18 22:04 thegabrielstein

Wow, I just had an idea... For items that are very similar, what if we could highlight a diff in bold of the text that stands out!

That would be very cool.

ffMathy avatar Apr 24 '18 08:04 ffMathy

This is currently being worked on.

ffMathy avatar Jun 06 '18 22:06 ffMathy

In PR #571 I have now added a hash mechanism for all clipboard data types. It will be able to determine a hash for every clipboard content, to find duplicates.

Still need to implement the duplication ellimination, but that should be easy, so I am almost done!

ffMathy avatar Jun 06 '18 22:06 ffMathy