mdelobelle / metadatamenu

For data management enthusiasts : type and manage the metadata of your notes.
https://mdelobelle.github.io/metadatamenu
MIT License
478 stars 27 forks source link

How to update the fileClass of a batch of notes? #557

Open SourignaSimmalavong opened 5 months ago

SourignaSimmalavong commented 5 months ago

Hello,

I have some notes that are generated / edited externally, containing a fileClass in the frontmatter. Unfortunately, it seems that MM does not detect the fileClass until the file is modified inside Obsidian. A possible workaround is to open every generated notes, type something and erase it just to trigger the fileClass detection. Though I have 500+ generated notes, and it would be a pain to do manually ...

Example from the sandbox:

Is there a way to update notes in batch, or even the whole vault?

BTW thank you for the excellent plugin, it is really powerful!

Cheers!

mdelobelle commented 5 months ago

Hi you could disable / enable the plugin from the settings, it will trigger a complete indexing of the fileclasses

SourignaSimmalavong commented 5 months ago

I had a try, whether by disabling / enabling the plugin (manually or through BRAT), or even by restarting Obsidian, and unfortunately this does not catch the fileClass.

I've found a workaround though, if I change the view to "reading view" and then go back to "editing view", the fileClass is detected. And the same if I write something, this will detect the fileClass. It is not a really elegant solution but it works.