-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for excluding macos clipboard items from history #159
Add support for excluding macos clipboard items from history #159
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there, thank you for the PR! I apologize for my untimely review. Please rebase this on master
to pick up #161 to fix the unrelated CI errors.
I tried this one out locally and the functionality looks good to go! I'm happy to merge this one once the trait rename I've suggested is implemented.
…e-from-history # Conflicts: # src/common.rs
@complexspaces no worries. I've resolved the review feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to go now, thanks again.
I can most likely make a new release with these changes for you by early next week.
This is now released in v3.4.1 on crates.io. Thanks again for the PR! |
This follows the Windows strategy of introducing a Set Extension for excluding items from history in MacOS. It's implemented mostly the same way with every set action calling a
add_clipboard_exclusions
function.As there isn't technically an official standard it uses the community standard of setting
org.nspasteboard.ConcealedType
from http://nspasteboard.org/. I've manually tested this using the Maccy clipboard manager and withexclude_history
items are no longer tracked.I was a bit uncertain about the naming of the new trait as it could also be called
SetExtMac
but I decided to follow the filename.