-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for inserting images in PRs and issues #41
Comments
Is there a standard emacs convention for working with images in documents? |
For testing purposes we can use #38. |
Lets start with displaying the images that are already there. Look at |
I think displaying images would be best handled by markdown-mode itself. I'm investigating one approach to that by altering the function you mention. Right now as released, it only supports showing local files – but you've gotta download the image eventually. I figure that function can be augmented to optionally download remote images it finds. |
This definition of [clipped in favor of pull request below; see edit history if you're truly curious] |
For adding images interactively: Current keybind for this in markdown-mode is Specific to GitHub support, there is preview API(v4) to upload files, but I cannot find examples of its use nor does there seem to be an equivalent in v3. It might be tempting to use a third-party host, but that would raise content ownership concerns in private repositories and should be avoided if possible. Thinking forge-agnostically, it might make the most sense to think about this as a generic attachment to newly-created topics. This translates well both to uploads to link to from issues and to simple email attachments. |
So Forge actually already supports inserting images into posts; just not hosting them on
I think clients are expected to make such a request at the time the user inserts an image using the clients interfaced and then insert the returned url into the text. Doesn't really sound all that difficult.
Likely because the displaying is done using overlays. Those are not currently being "copied". I did briefly investigate whether #45 is caused by overlays that are not being copied and I think not. But I didn't test very carefully. Following urls also does not work, which is somewhat related in that we only use There is quite a bit of work ahead of us. The mentioned issues are all somewhat related, but addressing one probably won't make any of the others go away. But doing so might at least help address other issues, even if that requires additional work. In any case it seems like a good idea to think about all those issues now. (And maybe prioritize, I think the regular urls are most important.) This is probably also a good time to see whether @jrblevin wants to get involved. Hello Jason! |
I actually consider that the least important of these issues, but I might as well mention this here. We might want to consider throwing out |
And this is going completely off-topic, but related to
While we should probably tackle this last (unless someone feels excited about the challenge and wants to do it now), it might be useful to look at |
Hi Jonas, I'm very happy to add any interfaces or features to |
@jrblevin For some reason I didn't see your reply until now. Now that I haven't looked at the markdown related stuff in a while, but if I remember correctly a big problem is that we enable An alternative would be to use a multiple-major-modes-in-one-buffer package, but I have no experience with that and imagine if this a approach didn't have considerable drawbacks, then it would be more popular by now. Do you have some experience with that? |
I often attach screenshots and (short, directly to the point!) videos to PRs so would use this feature daily. What work is there to be done? Maybe I can contribute some effort towards this end. Reading the above I think we need:
|
I'm afraid I don't remember any details. I would certainly appreciate any help with this! |
We got any updates on this ? |
No |
Seems like uploading in the web UI is done via this undocumented API - https://gh.neting.ccmunity/t/adding-files-to-a-repository-and-attaching-them-to-an-issue/188305/2 |
The reference doesn't exist anymore. |
It would be cool if one could insert images in PRs and issues. E.g. for my current PR, I am inserting a few screenshots of a new interface to give the reviewer better idea what the proposed changes lead to. (Screenshots can similarly be useful when reporting issues). I have two options now:
I would love for there to be a third option - I can create the PR with the screenshot already directly in forge 😉.
Same for videos, see #49.
The text was updated successfully, but these errors were encountered: