obsidian-tracker icon indicating copy to clipboard operation
obsidian-tracker copied to clipboard

Breaks with new properties in obsidian frontmatter.

Open GauravKesarwani opened this issue 1 year ago • 4 comments

I had collection of values(array) in yaml inside frontmatter

eg:

workout: [0, 1]

The issue is that I am not able to use the new Properties UI with my obsidian tracker plugin. https://help.obsidian.md/Editing+and+formatting/Properties

Previously I was writing yaml inside frontmatter with array value as workout: [1, 0] and it worked. But I like the new properties UI and unable to use it if I choose the property type as list for key “workout” in my frontmatter.

Text type does not work either.

My tracker code:

searchType: frontmatter
searchTarget: workout[0], workout[1]
datasetName: Morning, Evening
folder: Journal/2023/Oct
month:
	color: green
	todayRingColor: orange
dateFormat: YYYY-MM-DD ddd

GauravKesarwani avatar Oct 09 '23 16:10 GauravKesarwani

Why do you use an array instead of separate fields? (Eg track morning and evening workouts as their own entries? Then you could use checkbox and the new UI would work nicely)

lazyguru avatar Oct 09 '23 16:10 lazyguru

I can update my template for the future. But I used to do that previously. I think obsidian Properties need to be backward compatible as well. It doesn't assign the list property type to array values, and it shows as "?". Moreover, when you try to change it to list, it does not allow you to do that.

GauravKesarwani avatar Oct 09 '23 17:10 GauravKesarwani

@GauravKesarwani were you able to get things working here? If not, would you mind providing a couple of example files (You already gave a dataview search block, maybe also a couple of example files with data?) We can build a test case from this to try to see if we can solve the issue

lazyguru avatar Nov 06 '23 03:11 lazyguru

I'm having the same issue. I'm using mine for tracking my mealTimes during the day.

RomanMunar avatar Dec 04 '23 02:12 RomanMunar