From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: datetree capture from agenda [7.5 (release_7.5.135.g7021f.dirty)] Date: Wed, 6 Apr 2011 13:06:35 +0200 Message-ID: References: <92753333-331E-45C6-A375-53D81FDBC644@gmail.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=39344 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7QZb-0006GG-4S for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 07:06:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7QZV-0000VU-7h for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 07:06:54 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:46489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7QZV-0000VB-3B for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 07:06:49 -0400 Received: by eyd9 with SMTP id 9so407222eyd.0 for ; Wed, 06 Apr 2011 04:06:48 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Philip Rooke Cc: emacs-orgmode@gnu.org On Apr 6, 2011, at 12:50 PM, Philip Rooke wrote: > Carsten Dominik writes: >=20 > Thanks Carsten, >=20 >> I can see that it might be nice to simply add some text >> under the date headline in a date tree, in order to build >> up a long journal entry from little snippets. >=20 > Yes, this is exactly what I do over the course of the day and I find = it > very useful. The trouble I run into is that, all too often, I forget = or > don't have time to add an entry on the day the noteworthy event > happened. I use the agenda capture action (k c) in this situation = since > the date I am on in the agenda is picked up automatically by the > template and the right date headline is created at the right place in > the journal. Currently I have to then cut/paste the note, which is = the > bit I was trying to avoid. >=20 >> However, you are trying to *mix* headline entries and plain entries >> under the same date node in the tree, and this seems to be = impossible. >=20 > Sorry, my fault, the full version of journal template I currently use > ends up creating entries like: >=20 > *** 2011-04-06 Wednesday >=20 > Try and clarify journal/note taking use case for Carsten > [2011-04-06 Wed 10:03] >=20 > Apologise for confusing Carsten as I don't actually use headline > entries in the journal, plain only > [2011-04-06 Wed 10:05] >=20 >> Wouldn't a better strategy be to have the "plain" section be started = with a time, >=20 > Well, as you see above I actually do like to have the time of the = entry, > but the only way I thought I could do that was using the %U keyword in > the template (which is clumsy as it then duplicates the date/day). >=20 >>=20 >> (the %<%H:%M> requires the current git release...) >=20 > ... which, coincidently, seems to have appeared this morning :-) >=20 > That means I can use something like: >=20 > (setq org-capture-templates > '(("e" "Journal entry" entry (file+datetree "/tmp/journal.org") > "* %<%H:%M>\n %?") > ("l" "Journal late entry" entry (file+datetree = "/tmp/journal.org") > "* Retrospectively added %<%Y-%m-%d %H:%M>\n %?"))) >=20 > Used from an agenda action the retrospective date headline/notes are > created and filed in the right place, giving something like: >=20 > * 2011 > ** 2011-04 April > *** 2011-04-05 Tuesday > **** Retrospectively added 2011-04-06 11:35 > Checked with Bastien about committing doc string changes > *** 2011-04-06 Wednesday > **** 11:33 > Updated Org to latest version in order to get new capture keyword > expansion capability > **** 11:36 > Problem solved. Brilliant, that works. Carsten never ceases to > amaze... >=20 > Thank you. You're welcome. - Carsten