Ellpeck / ObsidianSimpleTimeTracker

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

Continuing a previous timer #5

Closed bojanivanovic closed 1 year ago

bojanivanovic commented 1 year ago

Hi, really loving this plugin, finding a lot of uses for it already.

The one thing I'd love to see added is the ability to continue tracking from a previous timer, because this way, if they're all chunked up during the chaos of the day, I have to calculate the total time per task at the end of the day.

Thanks and once again, great work with the plugin.

Ellpeck commented 1 year ago

What do you mean exactly? Do you mean summing up entirely separate Simple Time Tracker timers (ie code blocks?) If so, why don't you just use one timer with different, named sections? It'd be great if you could explain your specific use case a bit further!

bojanivanovic commented 1 year ago

Sorry for the lack of info.

Here's an example of the timer running right now:

image

(pardon the Croatian)

I have two separate entries (the "Izrada blah blah" ones), they're actually the same thing. But the "Code review" was something I had to do before continuing on the "Izrada" and now that I'm tracking "Izrada" again, it's a separate entry (in the same timer block), with the time for it split in two. Then at the end of the day, I have to calculate the total time for that task to enter it into my company's time tracking software.

I'd say something like a play button next to the edit one, which would pick up the same JSON block and continue adding time to it, if that's doable.

Ellpeck commented 1 year ago

Hmm, the timers aren't really set up that way, since an entry is strictly a start time and an end time. I'll try to think up a solution, though.

bojanivanovic commented 1 year ago

Thanks a lot!

Ellpeck commented 1 year ago

A feature has been implemented in https://github.com/Ellpeck/ObsidianSimpleTimeTracker/commit/1bda2accf4cc897308e454531a4cbe000048666d that allows you to create sub-segments! The UI for this is a little iffy right now, but I haven't thought of a good way to clean it up yet. I hope this is a good solution to your problem!

Obsidian_3wfbW71tWk

bojanivanovic commented 1 year ago

That looks great, thanks! Will give it a try as soon as I get a chance