hackjutsu / Lepton

💻 Democratizing Snippet Management (macOS/Win/Linux)
https://hackjutsu.com/Lepton
MIT License
10.14k stars 475 forks source link

Support image file readering #291

Open glody opened 6 years ago

glody commented 6 years ago

The more we know about your system and use case, the more easily and likely we can help.

Environment info

Description of the problem / feature request / question:

essentially, gist is a repo, user can add any file to the repo. include image file, like .jpg ,png etc. Hope Lepton support image file, even upload image file

If possible, provide a sample gist or screenshot:

image

If possible, provide the log files

hackjutsu commented 6 years ago

Thanks for the suggestion :)

I don't think GitHub Gist support images rendering, at least I don't see an interface for uploading images at this moment. (Of course, we can still hack it by copy&paste the binary chunk).

I would suggest sending this as a feature request to GitHub. Lepton might match it depending how this goes.

thiagosouza commented 6 years ago

Hi!, first of all, you created a very nice software! I am searching for image support also and I found it closed issue. But Github Gist actually supports images both by commiting them or commenting a image and linking it via its URL. This way, it is totally possible to have image support at Lepton. Any reason to don't do that? See you. Thanks!

hackjutsu commented 6 years ago

@thiagosouza

Sorry to reply late. Yes, gist supports image rendering in MD files and its Markdown-powered comments. But I don't find an option to upload an image in its online gist creation interface.

Do I miss something here?

image

hackjutsu commented 6 years ago

Maybe my question is, how to put an image to the gist for testing?

1a57danc3 commented 6 years ago

@hackjutsu Use imgur api?

Insert markdown to editor

davidgraeff commented 5 years ago

I'm also interested. Github does not provide an UI for image upload. But you can checkout the gist, add your image, push the changes, and GitHub will render the uploaded image, and it can even be linked in your markdown document.

ali-h2010 commented 2 years ago

It would be great if i can upload a screenshot of the code that i am creating a snippet for. It will be much easier to find and visualize the code when going back to it or when sharing it with others.