vscode-paste-image icon indicating copy to clipboard operation
vscode-paste-image copied to clipboard

[feature request] support encoding img to base64 and link with referer when c-a-v

Open NewUserHa opened this issue 5 years ago • 13 comments

there could be annoying that always create local img file after press c-a-v.

can we add an option to support encoding img to base64 and link with referer in the file when c-a-v?

NewUserHa avatar Aug 28 '20 18:08 NewUserHa

hi, @NewUserHa

Do your ideas fit in this video? https://drive.google.com/file/d/1wQVrYstNQ9DhanRFBxhcgfPZVVPY2GkU/view?usp=sharing

sakamoto66 avatar Aug 29 '20 14:08 sakamoto66

hi, @sakamoto66

The video is right.

That the img in preview windows could be saved to file via right-click can be better.

Do you know if the change can be merged?

NewUserHa avatar Aug 29 '20 14:08 NewUserHa

It doesn't seem to be active now, so I fork it and maintain it. I have no plans to merge.

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

This feature has just been released.

That the img in preview windows could be saved to file via right-click can be better.

preview windows not have context menu. https://code.visualstudio.com/api/references/contribution-points#contributes.menus

If you have a good idea, let me know!

sakamoto66 avatar Aug 29 '20 16:08 sakamoto66

the last activity of this repo was about 6 months ago. And it could be awesome if everyone can also benefit from this feature.

hope this repo can check the PR list soon and there's a PR of this feature.

thanks

NewUserHa avatar Aug 29 '20 16:08 NewUserHa

saving base64 to file may use the right-click menu when selecting the img base64 content in the editor window, and may combine with the current behavior on shortcuts when pasting via settings.

NewUserHa avatar Aug 29 '20 17:08 NewUserHa

Hi, @NewUserHa

sakamoto66.vscode-paste-image has been updated to version 1.1.8. Support convert base64 text of clipboard to image data!

  1. Copy base64 text (Ctrl + C)
  2. Paste Image (Ctrl + Alt + V) or Select Create image from clipboard to context menu or Select Paste image of clipboard to context menu

sakamoto66 avatar Aug 31 '20 15:08 sakamoto66

Great. thanks but a lot of users can't get this update

NewUserHa avatar Aug 31 '20 18:08 NewUserHa

I just tried It was installed when reboot.

sakamoto66 avatar Aug 31 '20 23:08 sakamoto66

I meant これをもうインストールしている他の人は、この更新取得できない

NewUserHa avatar Sep 01 '20 00:09 NewUserHa

Please try. select Check for extention Updates to extention menu ...

image

sakamoto66 avatar Sep 01 '20 00:09 sakamoto66

it can't be previewed image

NewUserHa avatar Sep 01 '20 07:09 NewUserHa

It's a problem with markdown.

before

![][2020-08-31-15-21-17.png]
[2020-08-31-15-21-17.png]:data:image/png;base64,

after

![][2020-08-31-15-21-17.png]

[2020-08-31-15-21-17.png]:data:image/png;base64,

note: add empty line under line of "![][2020-08-31-15-21-17.png]".

sakamoto66 avatar Sep 01 '20 10:09 sakamoto66

it worked.

NewUserHa avatar Sep 01 '20 11:09 NewUserHa