vkostyanetsky / ObsidianTimesheet

Timesheet generator plugin for Obsidian
MIT License
3 stars 0 forks source link

[FEATURE] Define source file to pull data from #1

Open NothingWorksToday opened 2 months ago

NothingWorksToday commented 2 months ago

I really like your idea so far! One feature request I'd like to make - if it's technically possible: Add a setting that lets the code blocks either

and add another setting, specifying the working days (like Mon, Tue etc.) as a list.

This way one could see the previous working day's timesheet in today's daily note and be even better prepared for the daily :)

vkostyanetsky commented 2 months ago

Thanks!

I think I can implement it as another code block in the same plugin. For instance, the timesheet code block will be pulling data from the current file, while timesheet-previous will be doing it for the previous working day. So, a user is free to choose what to use without changing behavior of the plugin in a whole vault.

One thing: I am not sure about the setting to specify working days. In my experience, specifying a schedule always fails because of days off, holidays, etc. As a variant, the plugin can look for a previous day that contains tasks with logged time/issue numbers and consider the result as a previous working day. Does it work for you?