mdelobelle / metadatamenu

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

Multiple problems today with MM #554

Open biscotty666 opened 9 months ago

biscotty666 commented 9 months ago

Salut,

For some reason MM is broken for me since yesterday. I can add a fileClass to a note, but trying to add missing fields does nothing. When I open the modal it does not display any fields. If I manually edit fields it clearly doesn't associate them with the fileClass since none of the select options appear.

I did try uninstalling and re-installing the plug-in, but that didn't help. If it helps, I'm using the Obsidian flatpak on a Deb 12 system.

Thanks for any help,

Brian

image

PS. I re-installed the plug-in version from a couple days ago, so I don't think this is related to your plugin, but perhaps to Obsidian itself?

mdelobelle commented 9 months ago

do you have any error message in the console?

mdelobelle commented 9 months ago

Hi without further info, I won't be able to find a solution. could you type MetadataMenu.fieldIndex in the console and paste the output?

biscotty666 commented 9 months ago

Not sure how to copy the output to here, bit here is an image.

image

mdelobelle commented 8 months ago

From the screenshot of the modal, It looks like you have two fileclasses named Default Can you confirm? (this shouldn't possible in the same folder so maybe the problem comes from there)

biscotty666 commented 7 months ago

Sorry I never got back to you on this, but I can confirm I only have one fileclass named Default (There is only one Default.md in my fault and it is the one in the fileClasses directory.

(I'm currently using the native Properties interface + Hover Editor to get similar functionality for the modal. I still make use of the dv object for the dynamic tables :-)

Merci encore une fois!

biscotty666 commented 6 months ago

Salut,

I happened to look at this today. I had created the fileClass definitions using in-line fields, not yaml front-matter. I guess at some point this option was removed, and none of my definitions were being recognized anymore.

Solution is to re-create the fields "properly" as frontmatter. No fields were being displayed in the modal because MM apparently no longer recognized the inline fields as valid MM fields.

Merci

PS: I switched to using templates to add the yaml properties since MM wasn't working for me, not sure if I'll switch back. I do love the dynamic table functionality your plugin provides, and it is a bit faster to edit properties of unopened files by clicking on the icon rather than using Hover Editor. Alors, en avant!