1 line
1.8 KiB
Plaintext
1 line
1.8 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Here's the POC code to generate a table report, I put it as an org-mode dynamic block to help me deal with the table data management.</p> <p><a href="https://gist.github.com/Trevoke/c91cc8c97476f681f82f9ce44efdac9b">https://gist.github.com/Trevoke/c91cc8c97476f681f82f9ce44efdac9b</a></p> <p>​</p> <p>e.g. do this:</p> <pre><code>#+begin: clockreport-by-project #+end: </code></pre> <p>and hit <code>C-c C-c</code> on the <code>begin</code> line.</p> <p>It generates this:</p> <p>​</p> <pre><code>#+begin: clockreport-by-project | | 2021-11-15.org | 2021-11-16.org | |------------+----------------+----------------| | EA | 0.18 | | | internal | 0.83 | | | management | 0.47 | 1.70 | #+end: </code></pre> <p>​</p> <p>It makes two big assumptions:</p> <p>* you use a PROJECT property on things you clock</p> <p>* you are using files named after the day of the year (e.g. `2021-11-16` but really whatever makes sense for you)</p> <p>​</p> <p>* right now it's not using any of the clocktable report filters, e.g. "thisweek" -- that's a relatively easy change you can make on line 14</p> <p>* You can adjust the path to the files on line 15.</p> <p>​</p> <p>When you run this, it will take you away from the buffer where you put the dynamic block. I don't yet know how to not do that, I thought save-excursion would do it, but obviously not.</p> <p>​</p> <p>feedback and improvements welcome :D</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/Trevoke"> /u/Trevoke </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/qvzpy4/wrote_a_clockreport_that_groups_by_day_and_by/">[link]</a></span>   <span><a href="https://www.reddit.com/r/orgmode/comments/qvzpy4/wrote_a_clockreport_that_groups_by_day_and_by/">[comments]</a></span> |