org-clock-csv
org-clock-csv copied to clipboard
Export clock notes
org supports per-clock notes when clocking out via:
#+STARTUP: lognoteclock-out
Example:
CLOCK: [2018-02-12 Mon 12:35]--[2018-02-12 Mon 12:53] => 0:18
- More notes
CLOCK: [2018-02-12 Mon 08:20]--[2018-02-12 Mon 11:31] => 3:11
- Refactored stuff
Ate a burrito
CLOCK: [2018-02-11 Sun 15:54]--[2018-02-11 Sun 17:33] => 1:39
CLOCK: [2018-02-11 Sun 14:00]--[2018-02-11 Sun 14:43] => 0:43
It would be nice if this could be exported to csv as well.
I'm not strongly opposed to this, but it appears that notes are unstructured by design, and I'm not quite sure they fall into the category of "data" in quite the same way that the other fields do. There's also the added complication of escaping the notes so that they abide by the CSV format itself -- e.g. turning line breaks into \n
, "
into ""
, and so on.
What's the use case you had in mind?
In my typical workflow, I make a note of what I was working on after I clock out, so that I can remember where I left off. I was hoping to retain this information in the csv output, so I can render it into my work report document, as some of my contracts require it.
old thread ... but for the record... I have a need for this as well, I like to include the notes on the client invoices. Emacs newbie and lisp ignorant but I think this code should pretty much be written but having a difficult time finding it. The Log mode of agenda view brings in the first line of the note which would be good enough for me.
In agenda view: C-u C-u l
Source Code: https://code.orgmode.org/bzg/org-mode/raw/master/lisp/org-agenda.el search for "org-agenda-log-mode-add-notes"