Smart automatically updated metadata across a vault,

Hey! As probably most people, my notes constantly evolve. Which means the note changes at all times.

Allow me to illustrate:

This note as of writing has the meta:

related::
tags::
:family_man_girl:::
:child:t2:::
:raising_hand_man:t2:::

but, a note from a couple of weeks ago uses a different metadata:

Metadata

Parent:: [[Building a Second Brain]]
Child::
Sibling::
Friend::
Note-type:: #note-type/literature📚
Tags::
%%

I’d like to keep my changes consistent across all notes with the given fields.

So, for instance, all fields with tags: or note-type:: across my vault will change to the new tags:: I use all tags in a given note.

And something like this dynamically applied thorough the entire vault. I hope this makes sense?

So, assuming my current “note metadata template” is:

tags::
:family_man_girl:::
:child:t2:::
:raising_hand_man:t2:::
:women_with_bunny_ears:::

the metadata below
%%

Metadata

Parent:: [[Building a Second Brain]]
Child::
Sibling::
Friend::
Note-type:: #note-type/literature📚
Tags::
%%

would change to:

Parent:: will change to :family_man_girl:::
tags:: #note-type/literature📚
:family_man_girl::: [[Building a Second Brain]]
:child:t2:::
:raising_hand_man:t2:::
:women_with_bunny_ears:::

Is there a plugin for that? and if not, how could this be done otherwise? I suppose manually with replace function in VSCode, but, well — it’s manual and tedious!

Here is a python CLI script that can search/replace frontmatter and inline fields.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.