Open ylluminate opened 1 month ago
@ylluminate Hi, thanks for the feedback.
Before PastePal didn't ignore apps like Clop by default, which resulted in unwanted modified data registered in PastePal. In recent versions of PastePal, we started to ignore Clop, so that's the behavior you're seeing. I may need to check which is best handled in this case
Thanks for that explanation and consideration! I will say while I am alright with PasteBot's behavior, I would like to see a mechanism that would facilitate non-duplication. When PasteBot receives the optimized paste it does so in a kind of duplicated fashion, but this "works" (better than not at all, for example). If you can figure out an optimal mechanism for this scenario, that would be truly amazing. Thank you.
Most clipboard history apps, like Raycast and Alfred for example, show both the initial image and the optimised one (as that's the way it appears in the macOS pasteboard, since apps can't modify the clipboard, only append to it)
It might be a good idea to do the same as the default, and maybe provide a setting that would detect Clop's optimised image and replace the initial image with it.
Detecting images copied by Clop is easy by looking at the clop.optimisation.status
item:
extension NSPasteboard.PasteboardType {
static var optimisationStatus: NSPasteboard.PasteboardType = .init("clop.optimisation.status")
}
if let item = NSPasteboard.general.pasteboardItems?.first, item.string(forType: .optimisationStatus) == "true" else {
// do your thang
}
Before PastePal didn't ignore apps like Clop by default, which resulted in unwanted modified data registered in PastePal
If you have trouble with how Clop adds to clipboard let me know, maybe I can do something to help clipboard apps more.
@alin23 Thanks for the suggestion, I will take a look
Describe the bug If Clop (https://github.com/FuzzyIdeas/Clop) is off, PastePal will ingest the image, but if Clop is on/active PastePal does not seem to ingest the image(s).
To Reproduce Steps to reproduce the behavior:
Expected behavior Any image either optimized via Clop or otherwise should end up in PastePal, just as it does for PasteBot - for example.
Desktop (please complete the following information):