Things I have tried
Manually renaming them?!
Automatically rename notes by their title inside the .md file
So basically what I’m trying to do is to batch-rename all .md note files according to the title that is inside the .md file. I recently jumped from Trilium Notes to Obsidian. Unfortunately, when I exported the notes from Trilium in order to import them to Obsidian, Trilium exported them with shortened filenames.
Now when I open them in Obsidian, the content inside is fine, but the filenames are shortened arbitrarily. For example, instead of the note being named “Ideas for books to write.md”, it now is named as “Ideas for books .md” or similar.
How can I fix this? Is there a way to automatically rename all .md files according to their #title?
I don’t want to do it manually–we’re talking hundreds of notes here