Open onqun opened 2 years ago
Obsidian's YAML-related features are still under development. I may work on it in the future when the specifications are finalized. The details are being discussed here. [https://forum.obsidian.md/t/master-thread-for-yaml-frontmatter-improvements/29225]()
Thank you I also wrote there
very usefull folder form the yaml~~
file content Then you can use the following template:
File's metadata alias: <% tp.frontmatter.alias %> Note's type: <% tp.frontmatter["note type"] %>
For me, the ideal would be to specify a lookup into the frontmatter YAML to retrieve the value used for comparison by a rule. My use-case is to have notes move based on the value of an arbitrary key in the frontmatter.
I would be happy to open a PR for this if it is appropriate
+1 for the ability to use user specified variables such as those set in yaml (e.g. notes with yaml "noteType: sourceNote" get moved to the "references/sources" folder, and those with "noteType: person" get moved to the "people" folder, etc) or alternatively inline variables as used in Dataview (e.g. where "noteType:: sourceNote" is in the body of the note).
The ability to use "folder:" in yaml/"folder::" inline would suffice, but being able to specify the variable rather than being stuck with "folder:" would be ideal.
Rather than moving notes with tags. I would love to have Folder: location in YAML.