Open Yetenol opened 1 year ago
Hi, the difficulty may be related to the fact that Obsidian indexes every open file and its contents in the .Obsidian file. If changes were made externally, Obsidian will not take them into account. The issue was reported on the forum in 2021: https://forum.obsidian.md/t/provide-a-way-to-re-index-files-that-have-been-changed-outside-of-obsidian/20370 Similar question was already answered here: #172
Summary
Files whose
dg-publish
tag has been enabled in external programs are uploaded when runningDigital Garden: Publish Multiple Notes
in Obsidian, but their frontmatter is not converted to json and remains untouched. Thus the url, folder paths and all possible links are broken.Motivation
I often publish notes, on a topic, only after all the subcategories are done. Therefore, I activate the
dg-publish
tag for many files through external programs.I use programs that directly create finished markdown files with the
dg-publish
tag, without opening them again in Obsidian.Steps to reproduce
Ctrl + Shift + F
to replace in all files^dg-publish: true$
using regular expression withdg-publish: ignore
on multiple filesDigital Garden: Publish Multiple Notes
^dg-publish: ignore$
using regular expression withdg-publish: true
on all filesDigital Garden: Publish Multiple Notes
Problem
The file we also opened in Obsidian was parsed correctly. It's update commit in the digital-garden repository shows a correctly parsed frontmatter at the beginning:
On the other hand, the file we didn't open in Obsidian was still published, but it's frontmatter wasn't parsed as you can see in it's update commit:
Therefore the page modifications aren't applied. No permalink is set. The url is wrong and does't correctly include the subfolder. You cannot enable/disable page-specific settings.