4 ms·
My capture templates are here https://github.com/karlicoss/dotemacs/blob/d3d26d4315868298b96cebf6bd9c5ffc25632fd8/org.el#L156-L162 https://github.com/karlicoss/
by karlicoss 6y ago
My capture templates are here https://github.com/karlicoss/dotemacs/blob/d3d26d4315868298b96cebf6bd9c5ffc25632fd8/org.el#L156-L162 https://github.com/karlicoss/dotemacs/blob/d3d26d4315868298b...
, but sleep logging is in a 'private' config for some reason, so I'll just paste it here:
(setq --my/extra-capture-templates
'(("s"
"sleep"
table-line
(file+headline "/path/to/capture.org" "sleep table")
"| %U | %? | | | |")))
"sleep table" is the heading, under which the table is contained. So:
- I press the capture hotkey (F4 for me)
- then 's' which prompts me for a table line
- %U automatically substitutes the timestamp
- the cursor is placed at %? (second column), so I can just log whatever I need to, tab for the next column, and then finish capture
- cauthon 6y agoWhat’s the advantage to this over a csv in excel? I track my blood pressure similarly. The entry is simple and I can read the csv into R/python whenever I want to visualize it.
- tecosaur 6y agoOrg lets you do that all in one place :)
- TeMPOraL 6y agoYou can keep it all in one file, along with the code and results of its execution. That org capture template will feed new data into a table; below it, in the same .org file, you can keep your R code and your Python code and whatever other code you prototype (I often write Elisp code), and you can execute all that code inside the .org file. This approach is not giving you any new features, it's just optimizing for convenience. Think of .org files as Jupyter notebooks on steroids :).
- putnambr 6y agoI was going to say, sounds like Jupyter. Is there much of an advantage I'm missing out on as someone who prefers GUIs over the terminal and vim/emacs?