Crates.io | clipboard-anywhere |
lib.rs | clipboard-anywhere |
version | 0.2.3 |
source | src |
created_at | 2022-07-25 19:59:42.858992 |
updated_at | 2023-12-24 17:56:07.16698 |
description | Copy text to the clipboard, even in WSL and SSH sessions |
homepage | |
repository | https://github.com/rgwood/clipboard-anywhere |
max_upload_size | |
id | 632809 |
size | 16,827 |
A simple wrapper around arboard
that works in a few more situations:
powershell set-clipboard
and powershell get-clipboard
)// Attempt to get clipboard contents. Will return error in an SSH session
let clipboard_contents: String = clipboard_anywhere::get_clipboard()?;
// Set clipboard contents to "Hello, world!";
clipboard_anywhere::set_clipboard("Hello, world!")?;