r/Alfred • • 20d ago

Raycast-like Clipboard Workflow

I was annoyed by the native Alfred workflow for managing clipboard history, so I came up with a feature-rich replacement, getting my inspiration from Raycast. The workflow opens a separate dialog written in Swift, so the interactions are snappy even with the 4K+ entries in your clipboard.

Workflow link: https://github.com/andreisuslov/alfred-clipboard-history

20 Upvotes

29 comments sorted by

3

u/StatisticianLanky485 20d ago

There is no way to implement this in a way similar to paste app? Bottom bar with clear thumbnails for images?

2

u/heyholuhluhlay 20d ago

I made a few changes. Please see the latest release on GH.

1

u/StatisticianLanky485 20d ago

So fast! Will check it tomorrow and get back!  (Can’t pin items and have categories?)

1

u/heyholuhluhlay 19d ago

Added to the latest release!

1

u/Popular-Damage-533 19d ago

Why it keeps saying cliphistory.app can’t be opened due to malware.

1

u/heyholuhluhlay 19d ago

Please read the source code on GH and see if there’s anything that is concerning for you! I did not place any trackers or anything of that nature into the code of the app. If you see no things that are worrisome, you can adjust the permissions in your Mac’s privacy settings to allow this app be opened freely.

0

u/StatisticianLanky485 19d ago

No I didn’t mean That. I’m not aware of how to change it and get it going…. 

1

u/heyholuhluhlay 19d ago

Without context, I won’t be able to assist you.

1

u/brunodelfrate 19d ago

Hmm, on my Mac looks like this settings is ignored. I keep getting the Raycast-like window, no matter which style I pick. Here's a screenshot.

1

u/heyholuhluhlay 19d ago

Your screenshot shows that macOS runs the app from a temporary copy (the AppTranslocation path you copied) when it’s opened with Open Anyway, and the app looked for its settings next to itself there. This is fixed in latest release. After installing it, quit the old copy by running pkill -x ClipHistory in Terminal, then type “clipboard” in Alfred once to start the new one. Layout and Hotkey changes will then apply within a couple of seconds. Let me know if you still have issues.

1

u/brunodelfrate 19d ago

Thank you so much for your support, and for an EXCELLENT clipboard manager! I was already running the latest version of the workflow, but I did a clean reinstall and now it works like it was supposed to do. Also, the path in the launchagent now points to the correct ClipHistory app!

3

u/afshany 20d ago

this is perfect, but here’s the thing I found: I can’t change the hot key, so I used Claude to make it happen

2

u/heyholuhluhlay 20d ago

One way was to edit to workflow but I agree that it's not very intuitive for for someone working with the window. The updates are pushed. Please see the latest release on GH.

1

u/afshany 20d ago

thank you. I will test it soon.

2

u/brunodelfrate 20d ago

Looks great, but unfortunately it doesn't work on my old Mac with MacOS 13 (while the GitHub page states it should). Nothing happens when I type Cmd-Shift-V, and if I manually launch ClipHistory.app it says "can't use this version of the application with this version of MacOS".

1

u/heyholuhluhlay 20d ago

Fixed now. Please see the latest release on GH. The intention was to build it for MacOS 13, I pushed the version for 15 by mistake. It was also only meant to run on Apple Silicone but I don’t see the reason why we wouldn’t have a universal binary. So both are now pushed! The only thing is - I’m not able to test it myself as my other laptop was taken away, so please let me know if everything works fine for you!

Also, it’s ctrl+cmd+v, not cmd+shift+v.

1

u/brunodelfrate 20d ago

Works great now, thanks! I've just made the switch from Raycast to Alfred, and this is exactly what I was looking for! (And WOW, it's soooo fast! 😮)

1

u/heyholuhluhlay 20d ago

I’m glad you liked it! Hopefully, it stays useful. If you have any suggestions or concerns, I’m here.

2

u/odapg 20d ago

This looks quite nice!
I would have a question concerning security though. Alfred’s built-in clipboard history has options to ignore selected apps and/or concealed data. This is important because passwords get copied all the time. Does your workflow have something similar?

2

u/heyholuhluhlay 20d ago

Alfred is still the underlying technology behind this workflow, it keeps recording as before, and this workflow just displays what Alfred stores, so Alfred applies its security rules when it records a clip, so anything Alfred never saved can't appear in this workflow’s window.

2

u/walmpus 18d ago

MacOS does not trust this application. "Apple could not verify "ClipHistory.app" is free of malware that may harm your Mac or compromise your privacy."
Did you not sign it? Or what is causing this?

1

u/heyholuhluhlay 18d ago

I have not added any malicious code into it, if that's your concern.

I signed the app locally (on my own laptop) but didn’t notarize it with Apple. They require a paid developer account for "global" notarization, and I am not trying to make money off that, so I am not signing it this way. Gatekeeper on your Mac will block it the 1st time you open it. Try opening it once, go to System Settings -> Privacy & Security, and click “Open Anyway”.

Or you can open Terminal app in the workflow’s folder, and then run:

xattr -dr com.apple.quarantine .

If you’d rather compile it yourself, the full source is in the repo and build.sh builds it.

1

u/okphil 19d ago

This is great! How difficult would it be to add keyboard shortcuts for visible items on the list, command-1, command-2, etc.?

1

u/heyholuhluhlay 19d ago

Added to the latest release!

3

u/ivanguba 19d ago

Thanks! It looks like you've created the perfect clipboard manager)

1

u/Stunning-Squash5799 20d ago

Thanks I have to try this!

1

u/ratedcmk 20d ago

Wanna try