From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: capture templates and ^{prompt} Date: Fri, 30 Jun 2017 17:18:46 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11444ab056c67c055329e9a2" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQs59-0007WF-KC for emacs-orgmode@gnu.org; Fri, 30 Jun 2017 05:19:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQs58-0004nG-Cy for emacs-orgmode@gnu.org; Fri, 30 Jun 2017 05:19:19 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:34881) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQs58-0004mk-6f for emacs-orgmode@gnu.org; Fri, 30 Jun 2017 05:19:18 -0400 Received: by mail-wm0-x22f.google.com with SMTP id w126so104203033wme.0 for ; Fri, 30 Jun 2017 02:19:18 -0700 (PDT) In-Reply-To: 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: Jean-Christophe Helary Cc: Org-mode --001a11444ab056c67c055329e9a2 Content-Type: text/plain; charset="UTF-8" Check out the docstring of variable `org-capture-templates`. There is a doc like this: ``` %\1 ... %\N Insert the text entered at the nth %^{prompt}, where N is a number, starting from 1. ``` Maybe this is what you want? [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Fri, Jun 30, 2017 at 5:14 PM, Jean-Christophe Helary < jean.christophe.helary@gmail.com> wrote: > I'm looking for a way to use the string acquired by prompt in a second > location in the template, like: > > * TODO %^{prompt} [/] :sometag:\n** TODO (value of ^{prompt} comes here) > :someothertag:\n > > What's the best way to get that "value of ^{prompt}" ? > > Jean-Christophe > --001a11444ab056c67c055329e9a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Check out the docstring of variable `org-captu= re-templates`.
There is a doc like this:
%\1 ... %\N Insert the = text entered at the nth %^{prompt}, where N
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 is a number, starting f= rom 1.
```
Maybe this is what you want?

[stardiviner]=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this world!= >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeenode): = stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchi= ld
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C= 3 2433
Blog: http://stardiviner.github.io/

On Fri, Jun 30, 2017 at 5:14 PM, Jean-Christ= ophe Helary <jean.christophe.helary@gmail.com> wrote:
I'm looking for a way to use= the string acquired by prompt in a second location in the template, like:<= br>
* TODO %^{prompt} [/] :sometag:\n** TODO (value of ^{prompt} comes here) :s= omeothertag:\n

What's the best way to get that "value of ^{prompt}" ?

Jean-Christophe

--001a11444ab056c67c055329e9a2--