telesoho / vscode-markdown-paste-image

Smartly paste for Markdown.
MIT License
135 stars 41 forks source link

Not working #15

Open clsmt opened 6 years ago

clsmt commented 6 years ago

I am using win 7, VSCode 1.23.1 zip. I've read #6, I've added powershell to my PATH.

When I copy a image file in my explorer, then press Ctrl + Alt + V in a .md file in VSCode, nothing happens. If I Ctrl + Shift + P, choose markdown paste, Code says There is not a image in clipboard.

telesoho commented 6 years ago

If you use the 'copy' command from explorer, it cannot work for this extension. But you can open the image by Chrome browser, then right click the image and select 'copy image'. @clsmt

clsmt commented 6 years ago

Thanks for the explanation. I am surprised that coping a image from explorer to md (or dragging a image file using the mouse) is not possible now with VSCode. Would you please make it happen?

What's the standard way now with VSCode? Typing out everything in ![]{} ?

telesoho commented 6 years ago

VSCode be build for programer, So, It' will be very easy to copy a file path and paste it in ![]{} for a programer. I don't think it is very necessary for developing an extension to support drap and drop into a Markdown file just for puting the file path into ![]{} @clsmt

clsmt commented 6 years ago

Does a programmer have a special trick to copy file path? Atom has this more convenient feature. I thought atom is built for programmers too.

On Mon, Jun 4, 2018 at 12:47 AM WenHong.Tan notifications@github.com wrote:

VSCode be build for programer, So, It' will be very easy to copy a file path and paste it in ![]{} for a programer. I don't think it is very necessary for developing an extension to support drap and drop into a Markdown file just for puting the file path into ![]{} @clsmt https://github.com/clsmt

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/telesoho/vscode-markdown-paste-image/issues/15#issuecomment-394264209, or mute the thread https://github.com/notifications/unsubscribe-auth/AYnUpXB6E6LOcQ--kSu0leYcAYKyyJnNks5t5OYNgaJpZM4UX55z .

-- Best Regards,

Alex

telesoho commented 6 years ago

@clsmt Yes, you can copy the file path easily by right click the file and select 'copy path' in VSCode explorer. If you have set paste file path replace rules for this extension, you also can paste file path into ![]{} by this extension too, please see #14 (this answer only work for linux and mac, you have to write you own regular expresion replace rules on window)

kmd178 commented 5 years ago

Direct image data from the clipboard or URLS for gifs and images work wonderfully to paste so far! But i do agree with clsmt that it would be an amazing addition to be able to do the same with a file in your clipboard as well. Would make things easier to paste in the same format as the rest of the files in an .md document. its a simple functionality and people shouldnt get an error for trying it.

For example

telesoho commented 5 years ago

@kmd178 Thank you for your advices. I think while pasting the file path that outside the .md workspace folder, copy the file to workspace folder then insert relative path to .md will be better than pasting it according to the existing rules.

kmd178 commented 5 years ago

@kmd178 Thank you for your advices. I think while pasting the file path that outside the .md workspace folder, copy the file to workspace folder then insert relative path to .md will be better than pasting it according to the existing rules.

Exactly. The only thing that would be extra helpful is that the copied file will follow the rules defined in the configuration of markdown paste (for example sub-folder inside working folder and name configuration).

Looking forward to see it work! = )

Morikko commented 2 years ago

I think the issue could be renamed to something like: Smart paste an image copied from the explorer or Smart paste an image copied as a path for clarity.