Commit graph

327 commits

Author SHA1 Message Date
ComplexSpaces
90f8f526f4 Fix grammar and typos in README
Some checks failed
Test / rustfmt (push) Failing after 2s
Test / clippy (macos-latest, 1.71.0) (push) Has been skipped
Test / clippy (macos-latest, stable) (push) Has been skipped
Test / clippy (ubuntu-latest, 1.71.0) (push) Has been skipped
Test / clippy (ubuntu-latest, stable) (push) Has been skipped
Test / clippy (windows-latest, 1.71.0) (push) Has been skipped
Test / clippy (windows-latest, stable) (push) Has been skipped
Test / test (macos-latest) (push) Has been skipped
Test / test (windows-latest) (push) Has been skipped
Test / miri (windows-latest) (push) Has been skipped
Test / semver (push) Has been cancelled
2025-06-29 01:52:18 +10:00
ComplexSpaces
4f9bff86dc Release 3.6.0 2025-06-28 09:40:46 +10:00
ComplexSpaces
380d2a691b Remove deprecated authors Cargo manifest field 2025-06-28 09:40:46 +10:00
ComplexSpaces
68ea2074ac Resolve new Clippy lints 2025-06-28 08:49:37 +10:00
ComplexSpaces
8f6bab7d48 Add README section about Linux clipboard ownership 2025-06-28 08:49:37 +10:00
ComplexSpaces
b704da3cea Add debug helper for too-early Linux clipboard dropping 2025-06-28 08:49:37 +10:00
ComplexSpaces
1040043ca4 Reword README sections and elaborate on Linux support 2025-06-28 08:49:37 +10:00
crumblingstatue
5f80bc1ddf
linux/x11: Don't stop worker thread if handling selection request fails (#186)
* linux/x11: Don't stop worker thread if handling selection request fails

Just because one request fails, that doesn't mean we can't handle
subsequent requests.
Stopping the worker thread on failure means that every subsequent
request will fail, which is usually undesirable.
2025-06-24 14:11:45 -05:00
ComplexSpaces
b1e6720c3e Fix getting text on Windows when locale identifiers differ 2025-06-15 22:02:59 -05:00
ComplexSpaces
6b0e47ac8a Reimplement Linux clipboard clearing with correct primitives 2025-06-15 16:59:47 -06:00
ComplexSpaces
825026572a Refactor Wayland error handling to better account for missing Primary clipboard 2025-06-15 16:59:47 -06:00
ComplexSpaces
7ea1cf2caa Clarify ownership handling in selection data writing
While there is no behavior difference, its more
obviously correct if we only claim clipboard ownership
_after_ we've written data and prepared to serve it.
2025-06-15 14:52:43 -06:00
ComplexSpaces
b5e123032c Add exclude_from_history on linux by setting x-kde-passwordManagerHint
Addresses #129

Co-authored-by: MrSmör <66489839+MrSmoer@users.noreply.github.com>
2025-06-15 14:52:43 -06:00
Artúr Kovács
91c33159b0
Release v3.5 (#183)
* Release v3.5

* Update CHANGELOG for 3.5 release

---------

Co-authored-by: ComplexSpaces <complexspacescode@gmail.com>
2025-04-03 13:17:08 +11:00
Gae24
1dcc18b221
Add file_list to Get interface (#179) 2025-03-23 18:08:18 +09:00
ComplexSpaces
bbd06b4d57
Merge pull request #180 from Gae24/error
use `Error::unknown` on Linux and macOS code too
2025-03-10 14:57:12 -05:00
Gae24
bcb2954db5 use Error::unknown on linux and osx too 2025-03-10 09:15:34 +01:00
ComplexSpaces
a9c2d68c18 Update wl-clipboard-rs 2025-02-13 18:47:36 -06:00
ComplexSpaces
e824bc8324 Cleanup Windows pointer casting 2025-02-13 18:26:00 -06:00
ComplexSpaces
543484f77c Check multiple windows-sys versions in CI
This is to prevent accidental breakage due to the new version range
2025-02-13 18:26:00 -06:00
ComplexSpaces
9d6a0b9b42 Update windows-sys version compatibility
Co-authored-by: Exotik850 <kidkool850@gmail.com>
2025-02-13 18:26:00 -06:00
ComplexSpaces
c474298e4b Remove unneeded Result from image_from_pixels 2025-02-13 14:17:07 -06:00
Mads Marquart
108cc38269
Update to objc2 v0.6 (#173)
This includes using the new crate `objc2-core-graphics`, which notably
does not have the `CustomData` helper that `core-graphics`. This is
probably for the better, as it allows us to avoid a double-boxing of the
data.
2025-02-13 12:44:37 -07:00
ComplexSpaces
431702b657
Bump Ubuntu runner version for cargo-semver-checks (#174) 2025-02-12 22:16:21 -07:00
Gae24
4b91bfe93e
Implement Get::html() for all platforms (#163)
* implement get html operation

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
2025-02-12 22:01:02 -07:00
Hamir Mahal
e458e1a26c style: simplify some statements for readability 2024-12-26 13:28:02 -07:00
ComplexSpaces
782b98c1e3 Cleanup unneeded lifetimes 2024-12-26 12:26:29 -07:00
ComplexSpaces
5350a8fb91 Bump env_logger
This removes `atty` and `winapi` from CI's test
builds.
2024-10-19 10:45:23 -05:00
ComplexSpaces
6b45272702 Release 3.4.1 2024-09-12 09:34:21 -06:00
Oscar Hinton
dd43f44ace
Add support for excluding macos clipboard items from history (#159)
* Adds support for excluding macos clipboard items from history
2024-08-27 12:10:21 -06:00
ComplexSpaces
ee39c47896 Fix new lints for CI 2024-08-24 15:36:59 -06:00
ComplexSpaces
151e679ee5 Release 3.4.0 2024-04-29 01:02:49 -05:00
ComplexSpaces
610e29ba81 Remove direct thiserror dependency 2024-04-28 04:08:29 -05:00
Roman Vlasenko
83740b7ab0
Copy image as PNG file on Windows (#141)
* Add image to Windows dependencies

* Set image data as PNG file on Windows
2024-04-28 01:57:04 -05:00
Mads Marquart
0bff1e07ea Use objc2 and its framework crates
`objc2` is a replacement for `objc`/`objc_id` that contains a bunch of safety improvements, including `msg_send_id!` which automatically upholds memory management rules (`Id::from_ptr`/`Id::from_retained_ptr` is no longer necessary).

Additionally, we use the framework crates `objc2-foundation` and `objc2-app-kit`, which provide for example the `NSPasteboard` type, which has the methods that arboard needs already defined, and with the correct types, ensuring that passing e.g. `Id<NSArray>` and thus accidentally giving away ownership over the array won't happen again.

These crates are automatically generated, ensuring that if you need some obscure API in the future, it's very likely to be there already.
2024-04-27 15:53:32 -05:00
ComplexSpaces
1cca83d7e5 Revert "add timeout to RustConnection::connect to X11 server"
This reverts commit efedfb9e20.
2024-04-27 15:38:04 -05:00
ComplexSpaces
b4646f6c5f Increase version of clipboard-win used by default 2024-04-22 14:11:27 -05:00
Noel
e2846f9288 Fix clippy errors 2024-04-12 15:13:45 -05:00
Noel
2f4b502508 Move WaitConfig to src/platform/linux/mod.rs, use WaitConfig inside struct Set 2024-04-12 15:13:45 -05:00
Noel
6cf324cc44 Added WaitConfig, fix wait_until note in docs 2024-04-12 15:13:45 -05:00
Noel
eabb191df0 add notice for X11 in SetExtLinux#wait_until docs 2024-04-12 15:13:45 -05:00
Noel
bc9fd24915 update docs 2024-04-12 15:13:45 -05:00
Noel
c5c798b3a1 Add SetExtLinux#wait_until(Instant)
This was added to allow to wait until the contents of the clipboard were updated but won't block forever. The `wait_until` method will wait
until the deadline was reached.
2024-04-12 15:13:45 -05:00
rhysd
bb2e898d83 Bump up MSRV to 1.67.1 2024-04-11 20:26:50 -05:00
rhysd
e5d3df7017 Fix CI for Rust 1.61 doesn't use rustc 1.61 compiler 2024-04-11 20:26:50 -05:00
TÖRÖK Attila
f6fc4ea691 Update image to 0.25.1 2024-04-09 16:06:49 -05:00
ComplexSpaces
dc8a4bd4f2 Release 3.3.2 2024-03-02 13:39:56 -06:00
ComplexSpaces
f716441fe6 Bump Ubuntu version used in CI
Ubuntu 20 isn't the latest LTS version anymore
2024-03-02 12:51:51 -06:00
ComplexSpaces
2d77eee554 Add cargo-semver-checks to CI 2024-03-02 12:51:51 -06:00
ComplexSpaces
d1ef0918de Enable unreachable_pub lint as a warning
CI will make these a hard error in the future
2024-03-02 12:51:51 -06:00