p0deje / Maccy

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

Global shortcut to Clear stored content without having to reveal current stored content #775

Closed nasuoa closed 2 months ago

nasuoa commented 2 months ago

Before Submitting Your Feature Request

Problem

So there's the "Clear" shortcut: ⌥⌘⌫

It seems that the only way to activate it is to have Maccy opened up (either by clicking on it, or opening it with the global shortcut).

Is it possible to make a global Clear shortcut, so one doesn't need to open up Maccy and reveal what's in the stored content? Often we need to copy-paste credential, for example imagine we copied a newly created authentication token, or something else sensitive. Quite often I am screensharing or having my system shared on another projector. It would be preferrable in such situations to Clear the content globally/directly without even opening Maccy (as that reveals the stored content).

I do appreciate the benefit of the two-step process at the moment (Open first, then Clear) as that lets the user eyeball what's about to be deleted. But sometimes we need to directly Clear without letting other eyeballs see the content 😝

Thanks for considering!

Solution

No response

p0deje commented 2 months ago

You can add the custom Shortcut workflow - https://www.icloud.com/shortcuts/e756634285ef413db90a39fc6e91d9ec. Make sure to assign it to a global shortcut you prefer like this:

Screenshot 2024-05-01 at 15 53 21
nasuoa commented 2 months ago

Thank you Alex. I managed to install this, and it "runs" with the shortcut I have assigned (it shows the notification that's part of the flow). However, the clipboard isn't cleared. Any idea what's going on? Everything is set up exactly like in your screenshot. Many thanks.

p0deje commented 2 months ago

My bad, this is now fixed and will work correctly in the next version.

nasuoa commented 2 months ago

Thank you!

Sorry for the million questions, but I'm new to mac (and this is the first time I'm learning about Quick Actions etc --- which is very cool). But by next version, you are referring to Maccy (and not that I need to "update" the shortcut)? For example, I am currently using this Maccy version.. So, just wait for the next increment? Thanks!

CleanShot 2024-05-03 at 09 18 35@2x

p0deje commented 2 months ago

Once a new version of Maccy is released (for example 0.32.0), the existing shortcut will start working.

nasuoa commented 2 months ago

Awesome, thank you very much!