From mboxrd@z Thu Jan 1 00:00:00 1970 From: steen Subject: Help for inserting tagged entries into capture template Date: Wed, 4 Jul 2018 18:41:11 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000017416057036a5a9" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fatGv-0000rK-2n for emacs-orgmode@gnu.org; Wed, 04 Jul 2018 21:41:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fatGu-0003dX-2t for emacs-orgmode@gnu.org; Wed, 04 Jul 2018 21:41:25 -0400 Received: from mail-io0-x235.google.com ([2607:f8b0:4001:c06::235]:35646) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fatGt-0003cX-ST for emacs-orgmode@gnu.org; Wed, 04 Jul 2018 21:41:24 -0400 Received: by mail-io0-x235.google.com with SMTP id q4-v6so6252420iob.2 for ; Wed, 04 Jul 2018 18:41:23 -0700 (PDT) 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: org-mode-email --000000000000017416057036a5a9 Content-Type: text/plain; charset="UTF-8" I think this is best explained withe the actual use case. I have a template file for a custom capture, that looks like this: **** Daily Plan %T + [ ] The 3 most important tasks [/] - [ ] %^{1st Priority} - [ ] %^{2nd Priority} - [ ] %^{3rd Priority} I would like it to look like this (but functional) **** Daily Plan %T + [ ] The 3 most important tasks [/] - [ ] %^{1st Priority} - [ ] %^{2nd Priority} - [ ] %^{3rd Priority} + [ ] Ongoing Things - ( code to find any headlines tagged with :ongoing: ) I see from the template expansion page that I can put %(sexp) into a template, but I have no idea what that code should look like. I'm assuming an agenda search would be the most efficient? Any suggestions on how this could be done? Cheers, -- Steen --000000000000017416057036a5a9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think this is best explained withe the actual use case.<= div>
I have a template file for a custom capture, that looks = like this:

**** Daily Plan %T
=C2= =A0 =C2=A0 + [ ] The 3 most important tasks [/]
=C2=A0 =C2=A0 =C2= =A0 - [ ] %^{1st Priority}
=C2=A0 =C2=A0 =C2=A0 - [ ] %^{2nd Prio= rity}
=C2=A0 =C2=A0 =C2=A0 - [ ] %^{3rd Priority}

<= /div>
I would like it to look like this (but functional)

=
**** Daily Plan %T
=C2=A0 =C2=A0 + [ ] The 3 most= important tasks [/]
=C2=A0 =C2=A0 =C2=A0 - [ ] %^{1st Priority}<= /div>
=C2=A0 =C2=A0 =C2=A0 - [ ] %^{2nd Priority}
=C2=A0 =C2= =A0 =C2=A0 - [ ] %^{3rd Priority}
=C2=A0 =C2=A0=C2=A0+ [ ] = Ongoing Things
=C2=A0 =C2=A0 =C2=A0 - ( code to find any headline= s tagged with :ongoing: )=C2=A0

I see from the tem= plate expansion page that I can put %(sexp) into a template, but I have no = idea what that code should look like. I'm assuming an agenda search wou= ld be the most efficient?=C2=A0

Any suggestions on= how this could be done?

Cheers,
-- Steen
--000000000000017416057036a5a9--