Skip to content
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

Merged
merged 4 commits into from
Aug 27, 2024

Conversation

Hinton
Copy link
Contributor

@Hinton Hinton commented Aug 2, 2024

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 with exclude_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.

Copy link
Collaborator

@complexspaces complexspaces left a 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.

src/platform/osx.rs Outdated Show resolved Hide resolved
src/platform/osx.rs Outdated Show resolved Hide resolved
src/platform/osx.rs Outdated Show resolved Hide resolved
@Hinton
Copy link
Contributor Author

Hinton commented Aug 27, 2024

@complexspaces no worries.

I've resolved the review feedback.

Copy link
Collaborator

@complexspaces complexspaces left a 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.

@complexspaces complexspaces merged commit dd43f44 into 1Password:master Aug 27, 2024
11 checks passed
@complexspaces
Copy link
Collaborator

This is now released in v3.4.1 on crates.io. Thanks again for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants