farux / obsidian-auto-note-mover

This is a plugin for Obsidian (https://obsidian.md).
MIT License
259 stars 22 forks source link

Feature Request #17

Open onqun opened 2 years ago

onqun commented 2 years ago

Rather than moving notes with tags. I would love to have Folder: location in YAML.

farux commented 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]()

onqun commented 2 years ago

Thank you I also wrote there

hpxing commented 2 years ago

very usefull folder form the yaml~~

hpxing commented 2 years ago

i find that can use frontmatter instead of yaml。 Because yaml is not rendered~~

alias: myfile note type: seedling

file content Then you can use the following template:

File's metadata alias: <% tp.frontmatter.alias %> Note's type: <% tp.frontmatter["note type"] %>

EdJoJob commented 2 years ago

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

myndatlas commented 1 year ago

+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.