mgmeyers / obsidian-zotero-integration

Insert and import citations, bibliographies, notes, and PDF annotations from Zotero into Obsidian.
GNU General Public License v3.0
930 stars 51 forks source link

Making yaml front matter persist #60

Open racng opened 2 years ago

racng commented 2 years ago

I want to use yaml frontmatter for general metadata of my notes (ex. status tracking). It has to be placed at the beginning of the markdown file according to Obsidian doc. When I tried putting it under a persisting block below, it does not render correctly and tags are not created.

%% begin header %%
---
tags: Incomplete
---
%% begin header %%

Is there a way to overcome this? Like a command that makes everything above persist, or update starting from below a line?

Trikzon commented 2 years ago

I know it's not a perfect solution, especially if you have configured your entire vault to have the status tag in the yaml frontmatter, but you could temporarily use the dataview plugin's inline fields and have that persist.

So:

{% persist "tags" %}
tags:: Incomplete
{% endpersist %}
DominikRoB commented 2 months ago

Stumbled upon this exact issue... So just a heads up, that it's still relevant, maybe it can find it's way into the "relevant problems" list someday :)