[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] capture template: help w table-line target.
From: |
Stinky Wizzleteet |
Subject: |
[O] capture template: help w table-line target. |
Date: |
Sun, 24 Apr 2011 22:31:51 +0200 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) |
Hi all,
Christopher Allan Webber was so gracious to share his personal org setup
for dieting, now I'm adapting his org-remember-template:
(setq org-capture-templates
'(("w" "weigh-in" entry
(file+headline "~/.org/Diet.org" "diet")
"
* CAL-IN Diet for day %t
%^{Weight}p
| Food / Exercise | Calories | Quantity | Total |
|-----------------+----------+----------+-------|
| %^{Food} |%^{Calories} |%^{Quantity} | |
|-----------------+----------+----------+-------|
| Total | | | |
#+TBLFM: $4=$2*$3::$LR4=vsum(@address@hidden)
")))
This works allright, this capture template is used once every day to
start the table (christopher: how does one do a CAL-OUT ?)
It creates a headline for every day with the table.
During the day the org file needs to stay opened so one can fill the
table with food/exercise items.
Now, I understand org-capture has more functionality than org-remember,
like a capture template that adds a line to a table, totally apt for
this situation:
("f" "food or exercise" table-line
(file+headline "~/.org/Diet.org" "diet")
"| %^{Food} |%^{Calories} |%^{Quantity} | |"
:table-line-pos "II-1" )
But I' having trouble getting the target right.
This works like a charm on an org file that just has a table, but I need
to figure out a way how to grab the last table (or better even, *todays*
table, if not there, will create one, but I guess this is for future)
Can anyone point me in the right direction on how to add a table line to
the last table in an org file. Or the table in the last child of
headline "diet" ?
help a noob out,plz.
tips are greatly appreciated,
thx wzzl
--
Stinky Wizzleteet thinks:
You will have a long and unpleasant discussion with your supervisor.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] capture template: help w table-line target.,
Stinky Wizzleteet <=