mdelobelle / metadatamenu

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

FR: Support for nested dot notation. #200

Closed arminta7 closed 8 months ago

arminta7 commented 1 year ago

Like Dataview, support something like page.link.property in formulas and lookups.

mdelobelle commented 1 year ago

This shoudl already be the case. Do you have a full example of field that you would like to set with this syntax?

ertugruluyar-github commented 1 year ago

It does not showing nested fileds in manage fileds menu section even.

maksim77 commented 1 year ago

There is my frontmatter:

---
tags: [journal]
RHR: 
weight: 
glucose: 
running:
  distance:
  duration:
  avg_pace:
  avg_hr:
  max_hr:
  workout_type: 
---

It would be great if using the plugin you could set a value for example for the nested distance field of the running section.

mdelobelle commented 1 year ago

after some tests: this could be feasible but only for frontmatter. But dataview inline fields don't support nested values atm. There's no great way to display them "inline" : JSON.stringifying and YAML.stringifying are ugly and not human readable imho And I don't see any other standard that could stringify an object that could be parsed and then used with a dotted notation.

StefanoRausch commented 1 year ago

I support the request to support YAML (frontmatter) object fields.

It would allow for better and more concise structuring and handling of the metadata.

mdelobelle commented 8 months ago

I think this feature is covered by the recent addition of "Object" and "ObjectList" field types. I'll close this issue. Don't hesitate to open a new one based on the usage of those new field types if you need