emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jeremie Juste <jeremiejuste@gmail.com>
To: Eric Danan <eric.danan@u-cergy.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: No completion when querying for property value in capture template
Date: Thu, 07 Jun 2018 17:21:15 +0200	[thread overview]
Message-ID: <87sh5y1v2s.fsf@gmail.com> (raw)
In-Reply-To: <CAMBH+RYq=dE7cA6PwLNA9uR3x8_YeDfVp10QZt7mD8ftx9NFCA@mail.gmail.com> (Eric Danan's message of "Thu, 7 Jun 2018 15:05:55 +0200")

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 <eric.danan@u-cergy.fr> 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

  reply	other threads:[~2018-06-07 15:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-07 13:05 No completion when querying for property value in capture template Eric Danan
2018-06-07 15:21 ` Jeremie Juste [this message]
2018-06-07 21:18   ` Eric Danan
2018-06-08 20:29     ` [PATCH] " Eric Danan
2018-06-16 15:06       ` Nicolas Goaziou
2018-06-16 19:59         ` Eric Danan
2018-06-16 21:24           ` Nicolas Goaziou
2018-06-17  9:33             ` Eric Danan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sh5y1v2s.fsf@gmail.com \
    --to=jeremiejuste@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric.danan@u-cergy.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).