p0deje / Maccy

Lightweight clipboard manager for macOS
https://maccy.app
MIT License
12.91k stars 546 forks source link

Preview of images file://xxx #945

Open jgreffe opened 1 week ago

jgreffe commented 1 week ago

Before Submitting Your Feature Request

Problem

When copying a reference to an image file with the file:// protocol, something like file:///tmp/my-image.png, Maccy doesn't display a preview of this image. I'm not sure it's achievable?

This has been observed using Monosnap: https://apps.apple.com/fr/app/monosnap-screenshot-editor/id540348655

Solution

file://xxx references of images should display a preview

p0deje commented 1 week ago

This is by design. When you copy a file, we don't have access to it and I am not sure Maccy should attempt to load the file and show its contents. We don't really want to grow Maccy memory for file loading and I could pose security issues as well, when loading untrusted input.