Shapeshifter
Shapeshifter copied to clipboard
Elliminate duplicates in clipboard list
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).
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.
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.
This is currently being worked on.
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!