[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] No completion when querying for property value in capture templa
From: |
Jeremie Juste |
Subject: |
Re: [O] No completion when querying for property value in capture template |
Date: |
Thu, 07 Jun 2018 17:21:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
As far as I know it is not currently possible to get property
auto-completion from the property list of the file itself.
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
Would there be a way to for the capture template to read this info in the
future? For
instance to read the column format for the entire file like
#+COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
HTH,
Jeremie
Eric Danan <address@hidden> writes:
> Hello,
>
> There seems to be an old thread about this but I didn't find an answer
> there:
>
> http://lists.gnu.org/archive/html/emacs-orgmode/2011-10/msg01079.html
>
> If, from an org file containing two entries with respective values
> "foobar" and "foobaz" for property "prop", I call "org-set-property" to
> set property "prop", then the two values "foobar" and "foobaz" are
> offered as completions.
>
> But if I define a capture template with that file as target and the
> element "%^{prop}p" in the template, then no completetion is offered when
> I am queried for the property value. That makes this template element
> much less usable in my opinion. Is it a bug?
>
> I tested with "emacs -q"
> GNU Emacs 26.1 (build 1, x86_64-unknown-cygwin) of 2018-05-28
> Org mode version 9.1.13 (9.1.13-elpaplus @ /c/test/.emacs.d/elpa/
> org-plus-contrib-20180604/)
>
> I'm happy to help with further testing if needed.
>
> Thanks in advance,
>
> Eric
- [O] No completion when querying for property value in capture template, Eric Danan, 2018/06/07
- Re: [O] No completion when querying for property value in capture template,
Jeremie Juste <=
- Re: [O] No completion when querying for property value in capture template, Eric Danan, 2018/06/07
- Re: [O] [PATCH] No completion when querying for property value in capture template, Eric Danan, 2018/06/08
- Re: [O] [PATCH] No completion when querying for property value in capture template, Nicolas Goaziou, 2018/06/16
- Re: [O] [PATCH] No completion when querying for property value in capture template, Eric Danan, 2018/06/16
- Re: [O] [PATCH] No completion when querying for property value in capture template, Nicolas Goaziou, 2018/06/16
- Re: [O] [PATCH] No completion when querying for property value in capture template, Eric Danan, 2018/06/17