aidenlx / alx-folder-note

Add description, summary, and more info to folders with folder notes.
MIT License
244 stars 13 forks source link

[FR] Don't change link text when renaming note to index note #132

Open FynnFreyer opened 7 months ago

FynnFreyer commented 7 months ago

This concerns usage with index file notes only.

Say I want to break out a single note into multiple subnotes within a folder. E.g. I have a note Polynomial.md and want to extract Roots.md and Indeterminate.md. And let's say my index file name is README.

Before note refactor:

After note refactor:

To do that I'd create a folder Polynomial, move the note into the folder and rename it to the appropriate index note title. This way I preserve all links to the note. Now I can use the built in note composer plugin to extract the two subtopics and I'm done.

The problem is, while I preserved the links, when using markdown links, the mentions are renamed to README now. E.g. [Polynomial](path/to/Polynomial.md) becomes [README](path/to/Polynomial/README.md). This isn't great, because now I have to correct these mentions manually. Result should instead be [Polynomial](path/to/Polynomial/README.md).

I'm pretty busy right now, so this is on the back burner, but I will code this up and try to integrate it with the plugin and send a PR. Just putting it here for documentation, and coordination if someone else gets around to it first.

FynnFreyer commented 7 months ago

Somewhat related to #101 I just noticed. Same feature concerned, this issue just has a narrower scope. Maybe I should try to see if there's a way to generalise this to suit both?