Open sigmaSd opened 2 months ago
Any idea what that mimetype should be?
would be great when clicking the copy button it changes the ui to look like a check mark, like most websites now, and if the clipboard was changed it returns to the default icon
That is so much easier than the popover I was going to try. We can keep some state to make it work like you propose.
would be great when clicking the copy button it changes the ui to look like a check mark, like most websites now, and if the clipboard was changed it returns to the default icon
or an animation that just changes the icon for a couple of seconds then reverts back to the original, that's even easier
if I copy an image to the clipboard (in gnome I just press the screenshot button) and run xclip -selection clipboard -t TARGETS -o
it shows image/png
What is coming up as the mimetype when you're clicking the Copy button in Zed's REPL output?
copying an image from the output then running xclip
text/plain;charset=utf-8
pid/107999
UTF8_STRING
TARGETS
TIMESTAMP
I'm on wayland seems its hardcoded to text mime type https://github.com/zed-industries/zed/blob/12dde176084c9950b78093c1e7fb13e5988292ba/crates/gpui/src/platform/linux/wayland/client.rs#L751
Ahhhhh, that makes sense then. I just used the API as exposed via cx.write_to_clipboard
, not realizing that Linux did not have image handling.
Check for existing issues
Describe the feature
Allow copying images from repl output, currenly clicking on the copy button doesn't seem to do the correct thing on linux, (I can't paste the image, and i checked with xclip it seem to have the wrong mime type)
also side issue: would be great when clicking the copy button it changes the ui to look like a check mark, like most websites now, and if the clipboard was changed it returns to the default icon
If applicable, add mockups / screenshots to help present your vision of the feature
No response