From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Danan Subject: Re: No completion when querying for property value in capture template Date: Thu, 7 Jun 2018 23:18:19 +0200 Message-ID: References: <87sh5y1v2s.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003fb3a8056e13d3ec" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fR2In-0000jR-1T for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 17:18:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fR2Ii-0002Ps-6F for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 17:18:36 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:46162) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fR2Ih-0002LW-Si for emacs-orgmode@gnu.org; Thu, 07 Jun 2018 17:18:32 -0400 Received: by mail-io0-f170.google.com with SMTP id d22-v6so13485751iof.13 for ; Thu, 07 Jun 2018 14:18:31 -0700 (PDT) In-Reply-To: <87sh5y1v2s.fsf@gmail.com> 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: =?UTF-8?B?SsOpcsOpbWllIEp1c3Rl?= Cc: emacs-orgmode@gnu.org --0000000000003fb3a8056e13d3ec Content-Type: text/plain; charset="UTF-8" Thanks. As far as I know it is not currently possible to get property > auto-completion from the property list of the file itself. > I don't understand: when I call "org-set-property" directly from the file (C-c C-x p), it does get all the property values in the file and proposes them for completion. I am probably missing your pint, could I ask you to explain? Only when I use the "%^{prop}p" capture template element are the values not offered. I don't understand why because looking at the code of "org-capture-fill-template", it seems to simply call "org-set-property" for this element. but you could still make use of the stock property in the template and > auto-complete > from there > > For instance: > > ("T" "TEST" entry (file+headline"/tmp/test.org" "drill") > "** TEST \n :PROPERTIES:\n :Effort: > %^{prompt|0:10|0:20|0:30|1:00|2:00|3:00}\n :END: \n %^{PROMPT} " ) > > see the rest of the thread for more details > http://lists.gnu.org/archive/html/emacs-orgmode/2011-10/msg01339.html > Yes I've read the rest of the thread, but that's not always feasible. In my use case, the property values are titles of academic journals, I can't list them all inside a "%^{prompt}" template element, I need them to be fetched from the file. Thanks again. Eric --0000000000003fb3a8056e13d3ec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks.

As far as I know it is not currently possible to get property
auto-completion from the property list of the file itself.
=

I don't understand: when I call "org-set-prope= rty" directly from the file (C-c C-x p), it does get all the property = values in the file and proposes them for completion. I am probably missing = your pint, could I ask you to explain?

Only when I= use the "%^{prop}p" capture template element are the values not = offered. I don't understand why because looking at the code of "or= g-capture-fill-template", it seems to simply call "org-set-proper= ty" for this element.

but you could still make use of the stock property in the template and auto= -complete
from there

For instance:

("T" "TEST" entry (file+headline"/tmp/test.org" &qu= ot;drill")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "** TEST=C2=A0 \n :PROPERTIES:\n :Effort: = %^{prompt|0:10|0:20|0:30|1:00|2:00|3:00}\n :END: \n %^{PROMPT} " )

see the rest of the thread for more details http://lists.gnu.org/archive/html/emacs-orgmode/2011-10/msg013= 39.html

Yes I've read the rest of the thread, = but that's not always feasible. In my use case, the property values are= titles of academic journals, I can't list them all inside a "%^{p= rompt}" template element, I need them to be fetched from the file.

Thanks again.

Eric
=
--0000000000003fb3a8056e13d3ec--