Show HN: Clippy – a better pbcopy for macOS that handles files properly (github.com)
I made clippy because pbcopy can't do something I needed every day: copy files to paste into GUI apps. When you pbcopy < image.png, you get raw bytes instead of a file that Slack or email can use.
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
9 comments
[ 2.8 ms ] story [ 30.0 ms ] threadRust's linter is also called Clippy, and they don't seem to have any issues.
https://github.com/aae42/clippy-clippy/
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/Clipy/Clipy
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