Giter Club home page Giter Club logo

Comments (13)

sakamoto66 avatar sakamoto66 commented on May 24, 2024 5

This has been resolved.

https://marketplace.visualstudio.com/items?itemName=sakamoto66.vscode-paste-image

use image of clipboard from local pc.
So there is no need to use "shared clipboard".

when local pc is windows, xclip is unnecessary.

from vscode-paste-image.

sakamoto66 avatar sakamoto66 commented on May 24, 2024 5

hi, @DigitalMarc .

"There is not a image in clipboard."

This is error message of extension Paste Image(mushan.vscode-paste-image).

You installed extension Paste Image(mushan.vscode-paste-image).
It's not supported Remote Development.

Extension Paste Image from local pc(sakamoto66.vscode-paste-image) is supported Remote Development.

Please run step1-2.
step1, uninstall extension Paste Image(mushan.vscode-paste-image).
step2, install extension Paste Image from local pc(sakamoto66.vscode-paste-image).

from vscode-paste-image.

vezaynk avatar vezaynk commented on May 24, 2024 5

This repository has not seen any activity in over 3 years. There is an actively maintained fork here: https://github.com/telesoho/vscode-markdown-paste-image

I added WSL support to it yesterday, do take a look.

from vscode-paste-image.

dzylikecode avatar dzylikecode commented on May 24, 2024 1

Would you like to try my extension, here is the market:https://marketplace.visualstudio.com/items?itemName=dzylikecode.md-paste-enhanced

from vscode-paste-image.

ZhangSIming-blyq avatar ZhangSIming-blyq commented on May 24, 2024 1

This has been resolved.

https://marketplace.visualstudio.com/items?itemName=sakamoto66.vscode-paste-image

use image of clipboard from local pc. So there is no need to use "shared clipboard".

when local pc is windows, xclip is unnecessary.

Does the plugin "clipboard from local pc" support mac? I failed to do that with the error "Error: faild save image of clipboard". Although it do success on windows.

from vscode-paste-image.

heyzling avatar heyzling commented on May 24, 2024

The same for Remote-SSH. It seems remote clipboard is used, not local.
I found mention of this problem at https://code.visualstudio.com/docs/remote/troubleshooting#_clipboard-does-not-work .
Not sure if fix they offer can work with images. It seems, API methods work only with text content.

from vscode-paste-image.

spottedmahn avatar spottedmahn commented on May 24, 2024

It seems, API methods work only with text content.

Hi @heyzling - where did you see that? I didn't see it under Clipboard does not work.

from vscode-paste-image.

spottedmahn avatar spottedmahn commented on May 24, 2024

It seems, API methods work only with text content.

Nvm, found it Clipboard API 😀

image

from vscode-paste-image.

snt avatar snt commented on May 24, 2024

It could be workaround.

  • Make sure you have xclip installed as plugin suggests (sudo apt install xclip).
  • Run and configure X server like X410 or so and make sure your apps can connect to it (xclock, for example, can show a clock window).
  • Make sure your X server has "shared clipboard" feature.

I am using Ubuntu/WSL2 + X410 in Windows 10. Paste Image fails with same error while I stop X410.
WSL2 runs locally but it has different IP address unlike WSL1 that sharing localhost, so WSL2
basically similar to remote WSL.

from vscode-paste-image.

DigitalMarc avatar DigitalMarc commented on May 24, 2024

Hey,
I'm using the latest version (just installed it) and I'm getting "There is not a image in clipboard."
I'm copying from a Win 10 (Snipping tool.exe) to a virtualbox VM (Ubuntu 20). Regular copy paste is ok between the two.

from vscode-paste-image.

DigitalMarc avatar DigitalMarc commented on May 24, 2024

@sakamoto66 thanks for the feedback,
This time I'm getting Error: image of clipboard is empty
It might be related to this: https://forums.virtualbox.org/viewtopic.php?f=6&t=93937

from vscode-paste-image.

sakamoto66 avatar sakamoto66 commented on May 24, 2024

hi, @DigitalMarc
Please let me check.
Is the environment being tested a plan A?

  • plan A
    [vscode on windows10] ---(SSH)--->[Ubuntu 20 on virtualbox VM]

  • plan B
    [windows10] ---(virtualbox console)--->[vscode on Ubuntu 20 on virtualbox VM]

from vscode-paste-image.

huiyeruzhou avatar huiyeruzhou commented on May 24, 2024

Would you like to try my extension, here is the market:https://marketplace.visualstudio.com/items?itemName=dzylikecode.md-paste-enhanced

I installed your extension and found it to be very useful. I have a suggestion for improvement: have you considered adding a feature that supports automatically naming pasted images? This feature could automatically name the image based on selected text, and would be similar to the feature available in "paste image". The default naming format could therefore be improved, but it is sufficient for simple documents by now.

I also used the "paste from local pc" exension, but it appears to be outdated. Its handling of variables like ${currentFileDir} is confusing, and it cannot paste files correctly.

from vscode-paste-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.