img-paste-devs / img-paste.vim

paste image to markdown
384 stars 87 forks source link

After i enter the keybind, the directory will be created, but there is no image file. #58

Open bushnerd opened 3 years ago

bushnerd commented 3 years ago

I am on Ubuntu 18.04 of WSL 1, and xclip version is 0.12(I also downloaded the 0.13 version, and it niether does not work) After i enter the keybind, the directory will be created, but there is no image file.

I think the problem may be the xclip. So i try the command: $ xclip -selection clipboard -t image/png -o > 1.png Error: target image/png not available

Then i check the targets xclip supports. $ xclip -selection clipboard -t TARGETS -o TARGETS COMPOUND_TEXT UTF8_STRING STRING There is no image/png.

So is there another way i can use this wonderful plugin?

ferrine commented 3 years ago

It might be an issue your copy tool does not work

ferrine commented 3 years ago

I recommend investigating how to properly write copy paste command for your environment, and then report back here. I do not have a WSL for myself so I can only guide you through the debugging. This should not be overcomplicated

ferrine commented 3 years ago

Maybe you don't have some dependency?

bushnerd commented 3 years ago

Thanks for your reply. I have investigated, it is an issue about my xclip tool. The xclip tool does not support image/png. So is there another tool can resolve that?