emacs/var/elfeed/db/data/6a/6aa28fc66e6fa9b95a271ef2655edcaaca75eeb6
2022-01-03 12:49:32 -06:00

1 line
1.8 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>Here&#39;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>&#x200B;</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>&#x200B;</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>&#x200B;</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>&#x200B;</p> <p>* right now it&#39;s not using any of the clocktable report filters, e.g. &quot;thisweek&quot; -- that&#39;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>&#x200B;</p> <p>When you run this, it will take you away from the buffer where you put the dynamic block. I don&#39;t yet know how to not do that, I thought save-excursion would do it, but obviously not.</p> <p>&#x200B;</p> <p>feedback and improvements welcome :D</p> </div><!-- SC_ON --> &#32; submitted by &#32; <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> &#32; <span><a href="https://www.reddit.com/r/orgmode/comments/qvzpy4/wrote_a_clockreport_that_groups_by_day_and_by/">[comments]</a></span>