Open ghost opened 10 months ago
+1, facing the exact same issue, the frontmatter and tracker don't work as expected.
Frontmatter:
---
habit.waterIntake: 2
---
Tracker (doesn't work):
searchType: tag
searchTarget: habit.waterIntake
line:
title: Water Intake
if I change the tracker type to text
, it works perfectly:
searchType: text
searchTarget: habit.waterIntake
line:
title: Water Intake
Looks like an issue with parsing nested YAML.
It seems that it's not possible to use a regex for
searchTarget
when usingsearchType: frontmatter
?If anyone knows how, I would really appreciate a pointer. If it's not possible, consider this a feature request.
Expected Behavior
I'm trying to use nested frontmatter like
that can be referenced as
habits.one
andhabits.two
. But because of this issue preventing that from working for me, I'm trying to use quasi nested frontmatter likethat can be referenced with regular expression
habits-.*
. (The idea is to add up how many habits are true and display the sum in a bullet chart.)But this isn't working for me.
Current Behavior
I just get an error: "no valid Y value"
Possible Solution
When using
searchType: text
, we can already use a regex forsearchTarget
. See here in the docs. I think adding support for the same thing when usingsearchType: frontmatter
would make a lot of sense!Steps to Reproduce (for bugs)
Just try using
searchType: frontmatter
and any regex forsearchTarget
.