p0deje / Maccy

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

Preview of images file://xxx #945

Closed jgreffe closed 19 hours ago

jgreffe commented 2 weeks 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 2 weeks 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.