emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-capture template property completion
@ 2011-10-25 20:25 dlc
  2011-10-29 12:02 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: dlc @ 2011-10-25 20:25 UTC (permalink / raw)
  To: emacs-orgmode

I am an emacs novice attempting to use an org-capture template.  The  
manual indicates completion is available while expanding %^{prompt}.   
Can one get completion on %^{prop}p for a property?  I tried the same  
syntax for prompt and that did not work.

David

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-capture template property completion
  2011-10-25 20:25 org-capture template property completion dlc
@ 2011-10-29 12:02 ` Bastien
  2011-10-31 14:18   ` dlc
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2011-10-29 12:02 UTC (permalink / raw)
  To: dlc; +Cc: emacs-orgmode

Hi,

dlc <dlc@coateconnection.com> writes:

> I am an emacs novice attempting to use an org-capture template.  The manual
> indicates completion is available while expanding %^{prompt}.  Can one get
> completion on %^{prop}p for a property?  I tried the same syntax for prompt
> and that did not work.

If you want to prompt the user for property "MyProperty" you need to use
%^{MyProperty}p in the capture template.

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-capture template property completion
  2011-10-29 12:02 ` Bastien
@ 2011-10-31 14:18   ` dlc
  2011-10-31 15:00     ` Giovanni Ridolfi
  0 siblings, 1 reply; 5+ messages in thread
From: dlc @ 2011-10-31 14:18 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

While prompting the user for property "MyProtperty", Is there a way to  
get completion on the "MyProperty" value while in the org-capture  
bufffer?(...either ala the %^{prompt} format or by reading the  
property definitions in the destination file or buffer?)

Thank You!

On Oct 29, 2011, at 7:02 AM, Bastien wrote:

> Hi,
>
> dlc <dlc@coateconnection.com> writes:
>
>> I am an emacs novice attempting to use an org-capture template.   
>> The manual
>> indicates completion is available while expanding %^{prompt}.  Can  
>> one get
>> completion on %^{prop}p for a property?  I tried the same syntax  
>> for prompt
>> and that did not work.
>
> If you want to prompt the user for property "MyProperty" you need to  
> use
> %^{MyProperty}p in the capture template.
>
> HTH,
>
> -- 
> Bastien
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-capture template property completion
  2011-10-31 14:18   ` dlc
@ 2011-10-31 15:00     ` Giovanni Ridolfi
  2011-10-31 19:14       ` dlc
  0 siblings, 1 reply; 5+ messages in thread
From: Giovanni Ridolfi @ 2011-10-31 15:00 UTC (permalink / raw)
  To: dlc; +Cc: Bastien, emacs-orgmode

dlc <dlc@coateconnection.com> writes:

> While prompting the user for property "MyProtperty", Is there a way to
> get completion on the "MyProperty" value while in the org-capture
> bufffer?

e.g. :

:PROPERTIES:
:Effort: %^{prompt|0:10|0:20|0:30|1:00|2:00|3:00}
:END:

so you can choose the value of 'effort'?


hth
Giovanni

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-capture template property completion
  2011-10-31 15:00     ` Giovanni Ridolfi
@ 2011-10-31 19:14       ` dlc
  0 siblings, 0 replies; 5+ messages in thread
From: dlc @ 2011-10-31 19:14 UTC (permalink / raw)
  To: Giovanni Ridolfi; +Cc: Bastien, emacs-orgmode

almost... using %^{Effort|0:10|0:20|0:30|1:00}p in the org-template  
expansion, this would match the same format as the %^{prompt} expansion.

If only the stock property is provided in the template, e.g.  
%^{Effort}p  ... then property completion would look in the capture  
target for  #+PROPERTY  Effort_ALL 0:10 0:20 0:30 1:00 to provide the  
value list for the choosing of 'effort'




On Oct 31, 2011, at 10:00 AM, Giovanni Ridolfi wrote:

> dlc <dlc@coateconnection.com> writes:
>
>> While prompting the user for property "MyProtperty", Is there a way  
>> to
>> get completion on the "MyProperty" value while in the org-capture
>> bufffer?
>
> e.g. :
>
> :PROPERTIES:
> :Effort: %^{prompt|0:10|0:20|0:30|1:00|2:00|3:00}
> :END:
>
> so you can choose the value of 'effort'?
>
>
> hth
> Giovanni
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-31 19:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-25 20:25 org-capture template property completion dlc
2011-10-29 12:02 ` Bastien
2011-10-31 14:18   ` dlc
2011-10-31 15:00     ` Giovanni Ridolfi
2011-10-31 19:14       ` dlc

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).