p0deje / Maccy

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

Screenshots saved to a file aren't copied to the Clipboard. #808

Open lzlrd opened 4 months ago

lzlrd commented 4 months ago

Before Submitting Your Feature Request

Problem

Coming from Windows, having a screenshot both copied to the Clipboard and saved to a File is useful as it allows for quick, immediate usage whilst preserving the image for later reference. On macOS however, Apple decided we can only pick one:

Screenshot 2024-07-04 at 19 30 28

Solution

I previously used a clipboard manager app called Clipy which implemented the following feature that monitored Screenshots being captured and copied them to the Clipboard:

https://github.com/Clipy/Clipy/commit/468ac389978d7fd353b9f7bde8be35099e744b0c

This utilises their RxScreeen library, https://github.com/Clipy/RxScreeen, which is an RxSwit wrapper for another one of their libraries, Screeen: https://github.com/Clipy/Screeen. It's licensed under the MIT License, which may be helpful depending on the path you'd like to take.

p0deje commented 4 months ago

I'm currently busy with https://github.com/p0deje/Maccy/discussions/790, but I would merge PR adding support for this if you're interested in implementing this.