1Password / arboard

A clipboard for Rust
Apache License 2.0
640 stars 73 forks source link

Add support for excluding macos clipboard items from history #159

Closed Hinton closed 1 month ago

Hinton commented 2 months ago

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.

Hinton commented 1 month ago

@complexspaces no worries.

I've resolved the review feedback.

complexspaces commented 3 weeks ago

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