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

Can tracker gather data from multiple inline fields in the same note?

Open Dartaltram opened this issue 5 months ago • 0 comments

I have a calendar tracker that should summarise all the instances I worked out. Those I have saved all in one file, for simplicity, with an inline dvField wod:: YYYY-MM-DD | type | reps | etc.., and I want the tracker to signal if there is a wod:: field with the date

Expected Behavior

As I said, the end result in my mind is a note with a series of lines "wod:: date | type | ..." and in another note the calendar showing when I did or didn't go to the gym + a summary with the max values (still didn't get to that part)

Current Behavior

This is my file (in a test note called Untitled.md) wod:: 2024-01-10 | STR | Push Press | x5 | 45kg | – wod:: 2024-01-03 | STR | Push Press | x5 | 45kg | – wod:: 2024-01-15 | STR | Push Press | x5 | 45kg | – wod:: 2024-01-19 | STR | Push Press | x5 | 45kg | – wod:: 2024-01-05 | AMRAP | -Wall walks, Deadlifts, SU(x10) | 13:54 | 85kg | peso incerto wod:: 2024-01-07 | AMRAP | -Wall walks, Deadlifts, SU(x10) | 13:54 | 85kg | peso incerto wod:: 2024-01-08 | AMRAP | -Wall walks, Deadlifts, SU(x10) | 13:54 | 85kg | peso incerto

searchType: text
searchTarget: '^wod:: (?<value>\d{4}-\d{2}-\d{2}) \| (.+) \| (.+) \| (.+) \| (.+)kg \| (.+)$, ^wod:: (\d{4}-\d{2}-\d{2}) \| (.+) \| (.+) \| (.+) \| (?<value>.+)kg \| (.+)$'
xDataset: 0
dateFormat: YYYY-MM-DD
datasetName: date, Gym

file: Untitled.md
specifiedFilesOnly: true

fitPanelWidth: true

month:

This leads to a count of all weights, shown as a sum and concentrated on the first value the tracker finds, that is 2024-01-10

Any idea what I'm doing wrong?

Dartaltram avatar Jan 11 '24 22:01 Dartaltram