Smithay / smithay-clipboard

Provides access to the wayland clipboard for client applications
MIT License
29 stars 12 forks source link

feat: support custom mime types #56

Open wash2 opened 8 months ago

wash2 commented 8 months ago

This adds support for loading and storing data that is not text. I've renamed some of the existing methods, so it's a breaking change, but I guess I could avoid renaming the methods so that isn't an issue. and make the methods for loading and storing custom types something like store_custom or load_custom.

wash2 commented 8 months ago

We also have CHANGELOG which is here, but no one cares about, even me.

:sweat_smile: I'll edit the CHANGELOG and address the other comments, thanks.

wash2 commented 8 months ago

Would there be any interest in using the mimes crate? I'm hoping to add support for multiple mime types to window_clipboard and I think it could also probably use the mime crate.

wash2 commented 8 months ago

Never mind about the mime crate, I think this is OK.