Ellpeck / ObsidianSimpleTimeTracker

Multi-purpose time trackers for your notes!
MIT License
132 stars 19 forks source link

Total time in YAML #54

Open RehmatSChawla opened 1 month ago

RehmatSChawla commented 1 month ago

I would like to be able to have the total time, or even the time of the latest completed segment, appear elsewhere in the note, especially in the YAML. Is it possible to do this somehow?

One simple implementation may be to assign a hotkey that prints this, but that still involves a manual step of going to the YAML and pressing the hotkey.

Ideally there is a command of sorts - something like {{DATE}} - that is automatically replaced with the total/latest time, triggered by the pausing of the timer. But I don't have the technical know-how to suggest an implementation for that.

This may also need to consider what happens when multiple timers are added in a single note. Maybe using segment names is necessary to handle that case.