Repository navigation
Immediately rename images pasted in markdown #66966
JJGOD-13
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Body
What are you proposing?
Since #18112 and #58588 you can correctly paste images into markdown documents. However, the pasted image file is always saved as
image_{increment}.{extension}. Whilst the end goal would be to have a lot of configurable settings regarding where the image can be saved and templates for the name. One thing that really bothers me whilst writing docs is that you can't quickly rename the pasted image AND have the pasted markdown mirror the name that you choose.Currently, I have to paste and image, go to the project panel, rename it there then update the link in the markdown. It would be much easier if I could just name the image file when I first paste it.
Possible approach
Firstly, this should be optional through settings.
Secondly, I'm not sure whether to leverage the inbuilt project view renaming, or to open a new modal that lets you name the file. I think there are various equally good ways of doing it. I'm not sure what might be the best/easiest to implement based on how the current feature is done.
I've tried to make a start, but i'm not quite sure how to instantiate an input field and then await user input from it. Would appreciate any sort of advice, or direction on where to look to.
All reactions