Fuco1 / org-clock-budget

Budget your time with org!
77 stars 5 forks source link

Budget time per file and report across multiples files #11

Open dariuskramer opened 4 years ago

dariuskramer commented 4 years ago

Hi,

Is it possible to get a report across multiple files, like all agenda files?

My use case is that I have an Org file for each project, with multiple tasks/subtasks in each project, and I would like to budget my time per project.

Fuco1 commented 4 years ago

It should work exactly the same as the agenda since we use the (org-agenda-files), which means even file-locks and so on should be supported.

Maybe I don't understand the question properly?

Are you saying that your files are not agenda files and therefore not included in the report? If that's the case then the function org-clock-budget-report will need to be patched to allow for taking other files as well. Maybe a customization setting could be added.

dariuskramer commented 4 years ago

You can't budget time per file, like a #+PROPERTY: BUDGET_WEEK 2:00 setting at the top of a file

Fuco1 commented 4 years ago

Oh I understand now. Yes I had this problem also and my solution was to nest everything under a top level header.

I would need to look at how the org-clock sums the times from individual tasks but it should be possible probably to achieve a per-file budget. Would fix some of my problems too. I'll look into it but can't promise any deadlines.

dariuskramer commented 4 years ago

Yes I had this problem also and my solution was to nest everything under a top level header.

That is what am I doing right now.

I'll look into it but can't promise any deadlines.

It's ok, thank you :)