obsidian-toggl-integration icon indicating copy to clipboard operation
obsidian-toggl-integration copied to clipboard

Summary not updated unless file is reloaded

Open champagnealexandre opened this issue 3 years ago • 2 comments

First: thank you so much for developing this plugin! It’s really cool ; it’s a nice incitative to have my weekly report in Obsidian (so like, all the time in sight).

The only problem for now is that since I’ve pinned a md file with my report in it, it’s not showing the latest timers. The report only seems to reload when I navigate away from the file and open it back again—and since I’ve pinned the file with my report in it, it won’t update anymore (unless I e.g., close then reopen Obsidian).

Maybe an auto-refresh at set interval (e.g., every minute) would be the appropriate solution?

champagnealexandre avatar Apr 19 '22 16:04 champagnealexandre

Hi Alexandre, thanks for your bug report. This is indeed the current implementation.

I considered an auto-refresh interval before, but this is not a good solution because some queries can be really expensive (e.g. a query spanning 365 days takes ~5 seconds to retrieve from Toggl).

I'll tag this issue so I'll be reminded to think of new solutions!

mcndt avatar May 19 '22 08:05 mcndt

This is an awesome plugin indeed. Thanks so much, @mcndt, for developing it.

I'm actually trying to show my day's summary/list in a Daily Note – which means that I'll query a different summary/list each day. It would be great to be able to see past notes with their own summary/list as a record.

So contrary to @champagnealexandre, I do wish that the summaries/lists would stay as they are, and never auto-refresh. Or, perhaps, instead, please make it possible to automate date/time period insertion in the toggl query (e.g. with Templater)?

tintinwulia avatar Aug 08 '22 16:08 tintinwulia