-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow copying to clipboard instead of saving as a file #9
Comments
Just tried out Polacode and while it is cool, this was my immediate thought as well. |
Absolutely, a must have functionality! |
Yep, had it in mind but didn't make it for MVP. |
This seems impossible with the current API. The Electron webview can't do it per this Chromium Bug. On macOS, pbcopy does not take image input. Electron does have an API but VS Code does not expose it. I'm asking for it: microsoft/vscode#217 (comment) |
@octref I tried to implement it this with the electron nativeImage + clipboard modules but can't get it running. I think we have to wait for Microsoft to expose the clipboard API via vscode. |
I don't think this solves this issue but can we have like a toggle to preview the image and right-click that and have Chrome's copy image functionality? Is that possible in VS Code right now? I checked the image previewer in Code but that doesn't allow me to copy the image being previewed. |
Random thought: has anyone tried using Canvas? From image, use drawImage. In Chrome, right-clicking canvas allows you to copy image. |
@kamranayub On the same lines as I was wondering which I posted above but right-clicking doesn't seem to popup any context menus inside VS Code. |
I implemented it by spawn another electron process in vscode... |
+1, I want to use this extension to copy paste code into emails. I'm not going to go through saving a file and importing for that. |
Someone made a fork that fixes a bunch of things, so I'd use that for the time being. |
duplicate of #70? I'd really like this feature too! |
I created an npm library for copying images to clipboard that you're free to use: |
This is definitely cool feature, will raise an PR for it when I'm not so busy. |
Awesome feature, very useful |
Hi, any updates on this? |
I found an extension that already implements this very useful feature. |
No description provided.
The text was updated successfully, but these errors were encountered: