From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Subject: Use of date trees in Capture has been modified Date: Thu, 16 Mar 2017 11:10:35 +0100 Message-ID: References: <59779b8073fa4f0683216c82e6ec9cce@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87wpbp36ih.fsf@delle7240> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403045fb1b0d7ca0d054ad64628 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coSN0-0000P8-2Q for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 06:10:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coSMy-0005Td-LT for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 06:10:58 -0400 Received: from mail-it0-x22b.google.com ([2607:f8b0:4001:c0b::22b]:35790) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1coSMy-0005TS-7l for emacs-orgmode@gnu.org; Thu, 16 Mar 2017 06:10:56 -0400 Received: by mail-it0-x22b.google.com with SMTP id m27so82110319iti.0 for ; Thu, 16 Mar 2017 03:10:56 -0700 (PDT) In-Reply-To: <87wpbp36ih.fsf@delle7240> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Eric S Fraga , org-mode list --f403045fb1b0d7ca0d054ad64628 Content-Type: text/plain; charset=UTF-8 Hi Eric, On Thu, Mar 16, 2017 at 10:39 AM, Eric S Fraga wrote: > On Thursday, 16 Mar 2017 at 07:55, Carsten Dominik wrote: > > Dear all, > > > > I have just pushed (to master) a patch that modifies the use > > of date trees in capture templates. > > [...] > > > For the time being, the old targets will be automatically translated > > and used correctly. When you use customize to change > > org-capture-templates, things will automatically be updated next time > > you change the variable. The recommendation is to go and update your > > templates, in case at some time in the future, we might remove the > > compatibility layer. > > Carsten, > > would you please post an example of the new format for those that don't > use customize for capture templates? An example equivalent to the > current behaviour would be welcome. > > For instance, my current diary appointment capture entry looks like this: > > ("d" "diary" entry > (file+datetree "~/s/notes/diary.org") > "* %^{Appointment} %^G\n%^{Date + time}T" > :immediate-finish t) > This case turns into ("d" "diary" entry (file+olp+datetree "~/s/notes/diary.org") "* %^{Appointment} %^G\n%^{Date + time}T" :immediate-finish t) so you only need to change the symbol from file+datetree to file+olp+datetree If you were using a week tree, the symbol you'd still use file+olp+datetree but also set the property :tree-type week If you are using one of the ....+prompt version, you would instead set the property :time-prompt t That is all. If you want to specify an outline path, these are just additional strings after the file name, for example ("d" "diary" entry (file+olp+datetree "~/s/notes/diary.org" "Heading 1" "Subheading" "subsubheading") "* %^{Appointment} %^G\n%^{Date + time}T" :immediate-finish t) Does that answer your question? Carsten --f403045fb1b0d7ca0d054ad64628 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Eric,



On Thu, Mar 16, 2017 at 10:39 AM, Eri= c S Fraga <e.fraga@ucl.ac.uk> wrote:
On Thursday, 16 Mar 2017 at 07:55, Carsten Do= minik wrote:
> Dear all,
>
> I have just pushed (to master) a patch that modifies the use
> of date trees in capture templates.

[...]

> For the time being, the old targets will be automatically translated > and used correctly. When you use customize to change
> org-capture-templates, things will automatically be updated next time<= br> > you change the variable.=C2=A0 The recommendation is to go and update = your
> templates, in case at some time in the future, we might remove the
> compatibility layer.

Carsten,

would you please post an example of the new format for those that don't=
use customize for capture templates?=C2=A0 An example equivalent to the
current behaviour would be welcome.

For instance, my current diary appointment capture entry looks like this:
=C2=A0("d" "diary" entry
=C2=A0 =C2=A0(file+datetree "~/s/notes/diary.org")
=C2=A0 =C2=A0"* %^{Appointment} %^G\n%^{Date + time}T"
=C2=A0 =C2=A0:immediate-finish t)

This = case turns into=C2=A0

("d" "diary&q= uot; entry
=C2=A0 =C2=A0(file+olp+datetree "~/s/notes/diary.org")<= br>=C2=A0 =C2=A0"* %^{Appointment} %^G\n%^{Date + time}T"
=C2= =A0 =C2=A0:immediate-finish t)

so you only nee= d to change the symbol from file+datetree to file+olp+datetree
If you were using a week tree, the symbol you'd still use = file+olp+datetree but also set the property=C2=A0

= =C2=A0 =C2=A0 :tree-type week

If you are using one= of the ....+prompt version, you would instead set the property
<= br>
=C2=A0 =C2=A0:time-prompt t

That is = all.

If you want to specify an outline path, these= are just additional strings after the file name, for example
("d" "diary" entry
=C2=A0 =C2=A0(fi= le+olp+datetree "~/s/notes/diary.org" "Heading 1" "Sub= heading" "subsubheading")
=C2=A0 =C2=A0"* %^{Appoint= ment} %^G\n%^{Date + time}T"
=C2=A0 =C2=A0:immediate-finish t)
<= /div>

Does that answer your question?
Carsten



--f403045fb1b0d7ca0d054ad64628--