PicGo / vs-picgo

A VSCode plugin of PicGo
https://marketplace.visualstudio.com/items?itemName=Spades.vs-picgo
MIT License
375 stars 52 forks source link

[Feature Request] [Ubuntu] Recognize and upload the image with the shortcut when the image path is copied in the clip board #80

Closed Rullec closed 3 years ago

Rullec commented 3 years ago

Hi all! After this period of use, I found that the vs-picgo plugin make me reaaaaly more productive, I love it a lot! But on Ubuntu 18.04 I would like to have a very personal feature request.

1. Background

As you know, the default file explorer in Ubuntu is typically nautilus, and the copy action in nautilus do not put the media file into the clipboard. Alternatively, it actually ONLY copy the file path, as indicated by this post

2. The feature(or option) I would like to have

When I copy an image(no matter .png or .gif) in the nautilus and want to upload it in vscode by vs-picgo, I cannot use my familiared short cut ctrl + alt + U to acheive this, because there is only a file path, briefly a string lying inside of the clipboard.

What I can do is only open the palette, and select the other two ways to upload it, like the image shown below image

May I make the ctlr + alt + U command to cover this functionality as well? In another word, I hope that when ctrl + alt + U is triggered and the vs-picgo find it an image path, the selection & uploading procedure can be automatically done.

Or if you find it trivial, may I have an option to do this? This feature can really keep the workflow simply and make the user happy.


I know that this may be very personal, so feel free to close it if you find it not quite useful, or add it into the waiting list ;-)

Thanks a lot for all of your work!

upupming commented 3 years ago

@Rullec Could you please show me the output of Developer Tools? From what I know, you have to install xclip in Linux for the copying for the clipboard to work. See https://github.com/Molunerfinn/PicGo/issues/285 for more detail.


I think vs-picgo should have reported the xclip is not installed error, I will try to add the error dialog next time.