Sounds great! Just to clarify – it doesn’t rename files retroactively, does it? Only on active file? Do you plan to add it to the community plugins?
This solves a workflow issue for me! Does the H1 have to be on the first line, or will the plug-in find the first H1 regardless of which line it is on?
(Also curious about the backlink section. How do you do that?)
It doesn’t rename retroactively, but when you open a file it will rename the first heading to the current filename. Probably should add a setting for that or some kind of way to identify which files it should run on and ignore existing files by default, hmmmm
Before Obsidian, I used NotebooksApp, which names your files based on their first line of text… but only if the filename it would generate for the current heading matched its existing filename when you opened it, or if the file was untitled to begin with.
It didn’t support front matter, alas. But this approach is nicely non-destructive since it effectvely only renames files that it named in the first place.
(Of course, my personal preference is to sync from header to filename, almost never the other way around.)
Yeah the logic definitely needs some revamping to make it less destructive. Maybe some toggles in the settings, or commands you have to manually run to “start syncing”.
When you open a file, it doesn’t rewrite the filename, just the heading of that file. Only if you were to update that heading it would rename the file, but even for me it messed up some headings that I created before using this plugin
I want to add some kind of tag to the file to mark it as “this is enabled for syncing” but don’t want to insert random stuff into documents
I had it installed previously, then it said there was an update. Tried to update, failed. Removed the plugin and attempted to install, but now it fails installation. So it seems something is wrong with the most recent release.
Are you on the required version (0.11.0)? I just tried to reinstall it on a different machine (both update from 1.0 and remove → install) and had no issues here