34 points · by nberkman · 1y ago · 14 comments
Clippy fixes this:
- clippy report.pdf → ⌘V into any app uploads the file
- curl image.png | clippy → pipes become pasteable files
- clippy *.jpg → multiple files at once
- Text files still work like pbcopy
Technical: Direct Objective-C bindings via CGo. Copies file references (like Finder), not contents. Auto-cleans temp files. No AppleScript hacks.
Install: brew install neilberkman/clippy/clippy
Rust's linter is also called Clippy, and they don't seem to have any issues.
Something worth implementing is multiple layers to the pasteboard content, so you're at least maintaining the original raw bytes. That and I always wanted a pasteboard that let you append contents to it. Just some ideas to consider
Be kind of nice if this also worked as a library rather than having all the workings in internal where they can't be called.
Unrelated: Is yo.txt in the root just junk?
https://github.com/neilberkman/clippy?tab=readme-ov-file#usi...
I might tackle Linux (and Windows) at some point, but contributions are definitely welcome!