Skip to content
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

Automatic image naming when saving #621

Closed
VictorZakharov opened this issue Jan 22, 2020 · 0 comments
Closed

Automatic image naming when saving #621

VictorZakharov opened this issue Jan 22, 2020 · 0 comments

Comments

@VictorZakharov
Copy link

For image naming, the formatter should support at minimum two entities, original article file name without md extension, like {filename} and sequential number {seq} which would be generated dynamically, based on already generated files (on the file system). And then I could specify {filename}-{seq} as image name format and not have to worry about opening any external windows (or just click confirm, because the image name would be correct every time). Very important for focus on writing great content (much like code).

The rationale for such naming scheme is that I should be able to know which article the image refers to by looking at the image file only. For example, if I were to delete an article, which images I need to delete, I could tell by file name. If it was some random name or guid based, I would need to see which images are referenced, what their names are, and then delete one by one (lots of back and forth).

I think by default the image save folder should be ProjectWebRoot we discussed in #619. And perhaps after this change I no longer need to open a dialog with prompt, so it could paste the image and then if necessary I can click that image to change path via image props or something like that (but realistically this would never happen assuming the naming algo is working correctly). This could be another/unrelated change with less priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants