Skip to content

Add support for excluding macos clipboard items from history#159

Merged
complexspaces merged 4 commits into1Password:masterfrom
bitwarden:mac-exclude-from-history
Aug 27, 2024
Merged

Add support for excluding macos clipboard items from history#159
complexspaces merged 4 commits into1Password:masterfrom
bitwarden:mac-exclude-from-history

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
Member

@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.

@Hinton Hinton requested a review from complexspaces August 27, 2024 12:56
@Hinton
Copy link
Contributor Author

Hinton commented Aug 27, 2024

@complexspaces no worries.

I've resolved the review feedback.

Copy link
Member

@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
@complexspaces
Copy link
Member

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