betamos / clipboard-files

Experimenting with cross-platform clipboard support for files in Rust
13 stars 4 forks source link

write support #2

Open warpdesign opened 1 year ago

warpdesign commented 1 year ago

Would be great to have write support: any chance of this to be implemented in the future?

jaydevelopsstuff commented 1 year ago

This repo may be of interest: https://github.com/b1tg/pickup.

betamos commented 5 months ago

Sure, PRs welcome. The API should probably be as similar as possible to the read API, perhaps:

pub fn write(paths: Vec<PathBuf>) -> Result<(), Error> {
betamos commented 5 months ago

Got a quick prototype working on linux, but there are bigger hurdles:

https://docs.rs/clipboard-win/latest/clipboard_win/#setter

The windows crate this project is using does not support writing file lists.

Lizitao610 commented 3 months ago

Got a quick prototype working on linux, but there are bigger hurdles:

https://docs.rs/clipboard-win/latest/clipboard_win/#setter

The windows crate this project is using does not support writing file lists.

How to do it on MacOS