[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Allowing multiple date trees in a single file

From: Carsten Dominik
Subject: Re: [O] Allowing multiple date trees in a single file
Date: Tue, 17 Jan 2017 13:19:56 +0100

Hi Nicolas,

thanks for your reaction.

By default, a day or week tree will assume that it is the only thing in a file when it is created and handled.
The exception is that if you have an Org entry with a property 


that the date tree will be placed under that specific node.  But since this is a specific property (key, not value), there was no way to target a different Org node as parent for a tree.  This is now possible.

Another way to implement this would be to use different VALUES for the DATE_TREE/WEEK_TREE property - maybe that would actually be a somewhat cleaner implementation.

I'll rethink that and I will also define a test.


On Mon, Jan 16, 2017 at 8:45 AM, Nicolas Goaziou <address@hidden> wrote:

Carsten Dominik <address@hidden> writes:

> here is a patch that allows to have multiple date trees or iso-week trees
> in a single file by allowing to specify the property name that will be used
> to place the tree.  The property name can be set in org-capture-templates,
> individually for every template if so desired.  I use that to have three
> different kind of journals in a single file.
> Any objections gains me to merge this change into Master?

AFAIR, WEEK_TREE and DATE_TREE allow to select the type of tree being
inserted. How is the new property allowing to do the same?

Also, there are some tests defined in "test-org-capture.el" and
"test-org-datetree.el". Would you mind extending those so as to include
your new property ?


Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]