FuzzyIdeas / Clop

Clipboard optimizer for macOS
https://lowtechguys.com/clop
GNU General Public License v3.0
520 stars 23 forks source link

disable auto-optimize #6

Closed valkenrath closed 10 months ago

valkenrath commented 10 months ago

at present, even with null watch paths and all hotkeys disabled, it seems ⌘ + c triggers an optimisation (bottom right popup appears)

this is undesirable:

much more often than not, when copying, i don't want optimization to occur, for example if transferring full fat pictures from a camera to a network share - i want the originals!

ideal scenario (for my use case): clipboard copy does nothing by default, but can be manually instigated via defined hotkey (my choice of modifier + C, per Clop's settings pane), or even better, with a similar command that optimizes then pastes is this possible? if so, please advise what i'm missing

further, more philosophically, is it sane to have (potentially, and at present empirically) destructive defaults?

fwiw, i'd find ($) value in this utility if it behaved as requested - an on demand background clipboard optimizer for images/gifs

v2.0.3 ie latest, but also also Sonoma 14.0 Beta (23A5312d), possibly this is the problem?

alin23 commented 10 months ago

By default Clop should only overwrite the clipboard image data, not the files themselves (this is when using Cmd-C which is enabled out of the box)

I tried to use non destructive sensible defaults, not sure what is going wrong in your case. Maybe can you send some detailed steps so I can test it myself?

v2.1.0 will soon have support for disabling the clipboard optimizer. It's already pushed, it needs more testing and a release.

It will also have a drop zone for files in case optimizing manually by hotkey is not as intuitive.

Optimizing on paste would be nice but it would need Accessibility permissions to stimulate the Cmd-V key combo. For now I'm trying to avoid asking for these permissions.

alin23 commented 10 months ago

I did more testing and indeed, when copying an image from an app that places both the image data AND the image path in clipboard, the original file gets modified. This is a bug, will be fixed in v2.1.0, thanks for letting me know about this!

alin23 commented 10 months ago

Fixed in v2.1.1