How to preserve a file name when saving a page in the browser? #962
-
Using the incredible EDIT extension. For example when I edit an existing file with an existing name such as "README-Todo.md". If I make changes and then SAVE the editor has renamed it "20240323-to-do-tasks.md". I see how new name is based off of meta data in the file. My problem is that I have many internal links that are fixed to a certain filename such as "README-Todo.md" but that file no longer exists. How can I set the behavior so that when Edit extension save an existing file, the filename is preserved? Thankyou. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
According to the page settings you could use |
Beta Was this translation helpful? Give feedback.
-
Thankx for that idea. Unfortunately that just does not make sense to me. Markdown is intended to be portable. So, I use "TitleSlug: README" per the documentation. Then when i edit my README.md in yellow, it changes the name on the disk to "2024-03-23-readme.md" Internally to Yellow, it might still find the proper location "README", but when I upload the files to a repo or share them some other way, the "README.md" won't exist anymore in the group of files. Similarly if I share the markdown files with someone who has a different simple markdown file browser; the internal links won't work anywhere except inside yellow. I'll keep thinking on this and see if i can find a work around or other documentations. |
Beta Was this translation helpful? Give feedback.
-
Interesting... Yes it seems to be occurring if i change/add "Published". If I change content it does NOT change filename. If I change or add other Meta Data Fields it does not change FileName. So if that is the intended operation, the changing filenames won't work for my work flow/backup scenarios. No worries, my easy solution is to not use the Meta Key "Published:", I'll just globally change it to "Released:" (or something like that) in my markdown files and my disk filenames should be fine. That seems pretty good solution, compared to stop using the awesome EDIT extension. I am really enjoying using yellow the past 2 weeks. Thankyou. Interesting revelation of the behavior for page.md files. |
Beta Was this translation helpful? Give feedback.
-
The edit extension has been updated and preserves the file name as you suggested. You can create file names with numeric prefix, for example the blog extension creates file names with the publication date, but this behaviour no longer happens everywhere. The edit extension can finally distinguish whether a file name needs a numeric prefix or not. |
Beta Was this translation helpful? Give feedback.
Thanks for the additional information. I am glad to hear you found a workaround. To be honest the numeric prefix for file names was intended for blog pages, it is triggered by the
Published
page setting, which we didn't expect people would use for something else than blog pages. I think the edit extension should distinguish whether a file name needs a numeric prefix or not. Let us check how much source code it would take to implement, I'll get back to you.