Plugin for keeping the filename and first heading of a file in sync

This plugin is awesome, a real time-saver, but due to its aggressiveness I have to put a leash and a muzzle on it :grin:. I have some custom H1s that donā€™t match the file name out of necessity (i.e. a note about ā€œ/etc/hosts fileā€ cannot be named like that as a file. In that case the file name may be ā€œetc-hosts-file.mdā€ and thatā€™s fine that way.

So I turn off the switches for ā€œUse File Open Hookā€ and ā€œUse File Save Hookā€.

But then I donā€™t understand how to trigger the functionality of this plugin manually.

How do I ā€œtrigger sync only manuallyā€? Is there a button or a command in the Command palette?

Thanks!

Hi Sararkin,

I wanted to take a moment to express my sincere gratitude for developing the Obsidian Filename Heading Sync plugin. Itā€™s been an invaluable tool for me, significantly streamlining my workflow and saving me a lot of time in managing my notes.

Your dedication and effort in creating and maintaining this plugin have not gone unnoticed. The functionality it provides has greatly enhanced my experience with Obsidian, and I truly appreciate the positive impact itā€™s had on my productivity.

Thank you so much for your hard work and for contributing such a great resource to the community. Keep up the fantastic work!

Best regards,

In case anyone is looking to do this, please note that if you want to have more than 1 regex pattern to ignore, you can separate them with the ā€œpipeā€ or | symbol. For example:

_mytemplates/|999-Journals/

will cause the plugin to ignore both the ā€œ_mytemplates/ā€ folder and the ā€œ999-Journals/ā€ folder (and everything beneath both of them).