From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Allowing multiple date trees in a single file Date: Wed, 18 Jan 2017 06:53:46 +0100 Message-ID: References: <87wpdv4fdq.fsf@nicolasgoaziou.fr> <871sw1zice.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113918a270a4f50546580b89 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTjCC-0003Yo-Rc for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 00:54:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTjCB-0006YR-L2 for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 00:54:08 -0500 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:33398) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTjCB-0006YE-GK for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 00:54:07 -0500 Received: by mail-io0-x230.google.com with SMTP id v96so4519089ioi.0 for ; Tue, 17 Jan 2017 21:54:07 -0800 (PST) In-Reply-To: <871sw1zice.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: org-mode list --001a113918a270a4f50546580b89 Content-Type: text/plain; charset=UTF-8 On Tue, Jan 17, 2017 at 6:50 PM, Nicolas Goaziou wrote: > Hello, > > Carsten Dominik writes: > > > 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 think ":DATE_TREE: week" ":DATE_TREE: t" is cleaner, indeed. > This is not quite what I meant. I meant :DATE_TREE: my_diary :DATE_TREE: food_and_health :DATE_TREE: movies watched > > > I'll rethink that and I will also define a test. > > I also agree there's an opportunity to refactor this and come out with > a more generic interface. > > Yet another option is to define new capture targets, e.g. > > - file+datetree+olp > - file+datetree+olp+date > - file+datetree+regexp > - file+datetree+regexp+date > - ... > - file+weektree+olp > - ... > > Those would ignore WEEK_TREE and DATE_TREE properties altogether. > Yes, one could have additional ways - but I am not going to take out the existing ones, which would needlessly break things with various users. Another thing I was thinking is a way to force prompting for a date, for example through a prefix argument, so that a single capture template could be used for using the current date and optionally a set one. Carsten > > Regards, > > > -- > Nicolas Goaziou > --001a113918a270a4f50546580b89 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Tue, Jan 17, 2017 at 6:50 PM, Nicolas Goaziou <= mail@nicolasgoa= ziou.fr> wrote:
Hello,

Carsten Dominik <dominik@uva.nl>= ; writes:

> 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 think ":DATE_TREE: week" ":DATE_TREE: t" is cl= eaner, indeed.

This is not quite what I= meant.

I meant

:DATE_TRE= E: my_diary
:DATE_TREE: food_and_health
:DATE_TREE: mov= ies watched
=C2=A0

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

I also agree there's an opportunity to refactor this and come ou= t with
a more generic interface.

Yet another option is to define new capture targets, e.g.

=C2=A0- file+datetree+olp
=C2=A0- file+datetree+olp+date
=C2=A0- file+datetree+regexp
=C2=A0- file+datetree+regexp+date
=C2=A0- ...
=C2=A0- file+weektree+olp
=C2=A0- ...

Those would ignore WEEK_TREE and DATE_TREE properties altogether.

Yes, one could have additional ways - but I am n= ot going to take out the existing ones, which would needlessly break things= with various users.

Another thing I was thinking = is a way to force prompting for a date, for example through a prefix argume= nt, so that a single capture template could be used for using the current d= ate and optionally a set one.

Carsten
= =C2=A0

Regards,


--
Nicolas Goaziou

--001a113918a270a4f50546580b89--