emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* using org-global-properties in capture templates
@ 2017-10-28  6:05 Xebar Saram
  2017-10-28  9:37 ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Xebar Saram @ 2017-10-28  6:05 UTC (permalink / raw)
  To: org mode

[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]

Hi all

so i just discovered today the org-global-properties

im still strugling to understand how to use it in a capture template

currently i use the %^{prompt}  option to quick select from a list of items
as following

(add-to-list 'org-capture-templates
'("ff" "Food"
entry
(file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
"Inbox")
"* COOK %^{Recipe Name}
:PROPERTIES:
:ID: %(org-id-uuid)
:Time: %^{minutes|-|10|15|30|60}
:END:
"
"Capture Template for food recipe"
))

i have many of these captures and if i change 1 property i need to change
all capture templates. from what i understand the org-global-properties
will allow me to define it once and use it in all capture templates. yet i
cant understand how.

following the manual i tried this

;; Effort and global properties
(setq org-global-properties '(("Effort_ALL". "0 0:10 0:20 0:30 1:00 2:00
3:00 4:00 6:00 8:00")))



(add-to-list 'org-capture-templates
'("f" "Food"
entry
(file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
"Inbox")
"* COOK %^{Recipe Name}
:PROPERTIES:
:ID: %(org-id-uuid)
:Effort_ALL: %^{Effort_ALL}p
:END:
"
"Capture Template for food recipe"
))


yet when i get to the Effort_ALL part it dosent prompt me for options. i
assume im doing it wrong. can anyone point me in the right direction?

thx

Z

[-- Attachment #2: Type: text/html, Size: 2155 bytes --]

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

* Re: using org-global-properties in capture templates
  2017-10-28  6:05 using org-global-properties in capture templates Xebar Saram
@ 2017-10-28  9:37 ` Nicolas Goaziou
  2017-10-28 18:44   ` Xebar Saram
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2017-10-28  9:37 UTC (permalink / raw)
  To: Xebar Saram; +Cc: org mode

Hello,

Xebar Saram <zeltakc@gmail.com> writes:

> ;; Effort and global properties
> (setq org-global-properties '(("Effort_ALL". "0 0:10 0:20 0:30 1:00 2:00
> 3:00 4:00 6:00 8:00")))
>
>
>
> (add-to-list 'org-capture-templates
> '("f" "Food"
> entry
> (file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
> "Inbox")
> "* COOK %^{Recipe Name}
> :PROPERTIES:
> :ID: %(org-id-uuid)
> :Effort_ALL: %^{Effort_ALL}p
> :END:
> "
> "Capture Template for food recipe"
> ))

"XYZ_ALL" is a special property defining allowed values for "XYZ". In
you case, you will get completion for "Effort" with:

  :Effort: %^{Effort}p


Regards,

-- 
Nicolas Goaziou

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

* Re: using org-global-properties in capture templates
  2017-10-28  9:37 ` Nicolas Goaziou
@ 2017-10-28 18:44   ` Xebar Saram
  2017-10-31 15:18     ` Xebar Saram
  2017-11-04 15:31     ` Xebar Saram
  0 siblings, 2 replies; 8+ messages in thread
From: Xebar Saram @ 2017-10-28 18:44 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: org mode

[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]

thx so much

that works well. i tried to add another org-global-property entry (i assume
thats possible) but then i didnt get completion for the second one.
this is what i used

(setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
Asian Chinese Israeli Italian American EastEuro Mexican French Persian
Austrian Greek Fusion")))
(add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))

i assume my syntax is wrong?

thx!

Z

On Sat, Oct 28, 2017 at 12:37 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Xebar Saram <zeltakc@gmail.com> writes:
>
> > ;; Effort and global properties
> > (setq org-global-properties '(("Effort_ALL". "0 0:10 0:20 0:30 1:00 2:00
> > 3:00 4:00 6:00 8:00")))
> >
> >
> >
> > (add-to-list 'org-capture-templates
> > '("f" "Food"
> > entry
> > (file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
> > "Inbox")
> > "* COOK %^{Recipe Name}
> > :PROPERTIES:
> > :ID: %(org-id-uuid)
> > :Effort_ALL: %^{Effort_ALL}p
> > :END:
> > "
> > "Capture Template for food recipe"
> > ))
>
> "XYZ_ALL" is a special property defining allowed values for "XYZ". In
> you case, you will get completion for "Effort" with:
>
>   :Effort: %^{Effort}p
>
>
> Regards,
>
> --
> Nicolas Goaziou
>

[-- Attachment #2: Type: text/html, Size: 2237 bytes --]

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

* Re: using org-global-properties in capture templates
  2017-10-28 18:44   ` Xebar Saram
@ 2017-10-31 15:18     ` Xebar Saram
  2017-11-04 15:31     ` Xebar Saram
  1 sibling, 0 replies; 8+ messages in thread
From: Xebar Saram @ 2017-10-31 15:18 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: org mode

[-- Attachment #1: Type: text/plain, Size: 1495 bytes --]

hi again

cant get to figure this out. any help would be really appreciated!

best

Z

On Sat, Oct 28, 2017 at 9:44 PM, Xebar Saram <zeltakc@gmail.com> wrote:

> thx so much
>
> that works well. i tried to add another org-global-property entry (i
> assume thats possible) but then i didnt get completion for the second one.
> this is what i used
>
> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
> Austrian Greek Fusion")))
> (add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))
>
> i assume my syntax is wrong?
>
> thx!
>
> Z
>
> On Sat, Oct 28, 2017 at 12:37 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
> wrote:
>
>> Hello,
>>
>> Xebar Saram <zeltakc@gmail.com> writes:
>>
>> > ;; Effort and global properties
>> > (setq org-global-properties '(("Effort_ALL". "0 0:10 0:20 0:30 1:00 2:00
>> > 3:00 4:00 6:00 8:00")))
>> >
>> >
>> >
>> > (add-to-list 'org-capture-templates
>> > '("f" "Food"
>> > entry
>> > (file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
>> > "Inbox")
>> > "* COOK %^{Recipe Name}
>> > :PROPERTIES:
>> > :ID: %(org-id-uuid)
>> > :Effort_ALL: %^{Effort_ALL}p
>> > :END:
>> > "
>> > "Capture Template for food recipe"
>> > ))
>>
>> "XYZ_ALL" is a special property defining allowed values for "XYZ". In
>> you case, you will get completion for "Effort" with:
>>
>>   :Effort: %^{Effort}p
>>
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>
>

[-- Attachment #2: Type: text/html, Size: 2838 bytes --]

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

* Re: using org-global-properties in capture templates
  2017-10-28 18:44   ` Xebar Saram
  2017-10-31 15:18     ` Xebar Saram
@ 2017-11-04 15:31     ` Xebar Saram
  2017-11-22  9:52       ` Xebar Saram
  1 sibling, 1 reply; 8+ messages in thread
From: Xebar Saram @ 2017-11-04 15:31 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: org mode

[-- Attachment #1: Type: text/plain, Size: 1962 bytes --]

sorry to bother again but still stuck with this....

i tried to add another org-global-property entry (i assume thats possible)
but then i didnt get completion for the second one.
this is what i used

(setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
Asian Chinese Israeli Italian American EastEuro Mexican French Persian
Austrian Greek Fusion")))
(add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))

can anyone point me to the correct syntax for adding additional
org-global-properties?

thx alot in advance

Z


On Sat, Oct 28, 2017 at 9:44 PM, Xebar Saram <zeltakc@gmail.com> wrote:

> thx so much
>
> that works well. i tried to add another org-global-property entry (i
> assume thats possible) but then i didnt get completion for the second one.
> this is what i used
>
> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
> Austrian Greek Fusion")))
> (add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))
>
> i assume my syntax is wrong?
>
> thx!
>
> Z
>
> On Sat, Oct 28, 2017 at 12:37 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
> wrote:
>
>> Hello,
>>
>> Xebar Saram <zeltakc@gmail.com> writes:
>>
>> > ;; Effort and global properties
>> > (setq org-global-properties '(("Effort_ALL". "0 0:10 0:20 0:30 1:00 2:00
>> > 3:00 4:00 6:00 8:00")))
>> >
>> >
>> >
>> > (add-to-list 'org-capture-templates
>> > '("f" "Food"
>> > entry
>> > (file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
>> > "Inbox")
>> > "* COOK %^{Recipe Name}
>> > :PROPERTIES:
>> > :ID: %(org-id-uuid)
>> > :Effort_ALL: %^{Effort_ALL}p
>> > :END:
>> > "
>> > "Capture Template for food recipe"
>> > ))
>>
>> "XYZ_ALL" is a special property defining allowed values for "XYZ". In
>> you case, you will get completion for "Effort" with:
>>
>>   :Effort: %^{Effort}p
>>
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>
>

[-- Attachment #2: Type: text/html, Size: 3439 bytes --]

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

* Re: using org-global-properties in capture templates
  2017-11-04 15:31     ` Xebar Saram
@ 2017-11-22  9:52       ` Xebar Saram
  2017-12-03  1:28         ` Adrian Bradd
  0 siblings, 1 reply; 8+ messages in thread
From: Xebar Saram @ 2017-11-22  9:52 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: org mode

[-- Attachment #1: Type: text/plain, Size: 2325 bytes --]

Hi all

sorry to nudge but after spending alot of time on this , googling etc cant
seem to get it to work. any help, tips or pointing me in the right
direction would really be appreciated!

Z

On Sat, Nov 4, 2017 at 5:31 PM, Xebar Saram <zeltakc@gmail.com> wrote:

> sorry to bother again but still stuck with this....
>
> i tried to add another org-global-property entry (i assume thats possible)
> but then i didnt get completion for the second one.
> this is what i used
>
> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
> Austrian Greek Fusion")))
> (add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))
>
> can anyone point me to the correct syntax for adding additional
> org-global-properties?
>
> thx alot in advance
>
> Z
>
>
> On Sat, Oct 28, 2017 at 9:44 PM, Xebar Saram <zeltakc@gmail.com> wrote:
>
>> thx so much
>>
>> that works well. i tried to add another org-global-property entry (i
>> assume thats possible) but then i didnt get completion for the second one.
>> this is what i used
>>
>> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
>> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
>> Austrian Greek Fusion")))
>> (add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))
>>
>> i assume my syntax is wrong?
>>
>> thx!
>>
>> Z
>>
>> On Sat, Oct 28, 2017 at 12:37 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr
>> > wrote:
>>
>>> Hello,
>>>
>>> Xebar Saram <zeltakc@gmail.com> writes:
>>>
>>> > ;; Effort and global properties
>>> > (setq org-global-properties '(("Effort_ALL". "0 0:10 0:20 0:30 1:00
>>> 2:00
>>> > 3:00 4:00 6:00 8:00")))
>>> >
>>> >
>>> >
>>> > (add-to-list 'org-capture-templates
>>> > '("f" "Food"
>>> > entry
>>> > (file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
>>> > "Inbox")
>>> > "* COOK %^{Recipe Name}
>>> > :PROPERTIES:
>>> > :ID: %(org-id-uuid)
>>> > :Effort_ALL: %^{Effort_ALL}p
>>> > :END:
>>> > "
>>> > "Capture Template for food recipe"
>>> > ))
>>>
>>> "XYZ_ALL" is a special property defining allowed values for "XYZ". In
>>> you case, you will get completion for "Effort" with:
>>>
>>>   :Effort: %^{Effort}p
>>>
>>>
>>> Regards,
>>>
>>> --
>>> Nicolas Goaziou
>>>
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 4187 bytes --]

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

* Re: using org-global-properties in capture templates
  2017-11-22  9:52       ` Xebar Saram
@ 2017-12-03  1:28         ` Adrian Bradd
  2017-12-03 12:53           ` Xebar Saram
  0 siblings, 1 reply; 8+ messages in thread
From: Adrian Bradd @ 2017-12-03  1:28 UTC (permalink / raw)
  To: Xebar Saram; +Cc: org mode, Nicolas Goaziou

[-- Attachment #1: Type: text/plain, Size: 3708 bytes --]

Hello,

It looks like you have one too many parenthesis around the Rating entry.
org-global properties is supposed to be a list of cons cells. The below
should work:

#+BEGIN_SRC elisp
(setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
Asian Chinese Israeli Italian American EastEuro Mexican French Persian
Austrian Greek Fusion")))
(add-to-list 'org-global-properties '("Rating_ALL". "- 1 2 3 4 5"))
#+END_SRC

Below is a version that worked for me with all three properties. I declare
the properties all in one list instead of adding them.

#+BEGIN_SRC elisp
(setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
Asian Chinese Israeli Italian American EastEuro Mexican French Persian
Austrian Greek Fusion") ("Effort_ALL" . "0 0:10 0:20 0:30 1:00 2:00 3:00
4:00 6:00 8:00") ("Rating_ALL" . "- 1 2 3 4 5")))

 (setq org-capture-templates
  '(("f" "Food"
    entry
    (file+headline  "~/tmp/tmp.org" "Inbox")
    "* COOK %^{Recipe Name}
    :PROPERTIES:
    :ID: %(org-id-uuid)
    :Time: %^{minutes|-|10|15|30|60}
    :Effort: %^{Effort}p
    :Rating: %^{Rating}p
    :Cuisine: %^{Cuisine}p
    :END:
    "
    "Capture Template for food recipe")))
#+END_SRC

HTH,

Adrian

On 22 November 2017 at 04:52, Xebar Saram <zeltakc@gmail.com> wrote:

> Hi all
>
> sorry to nudge but after spending alot of time on this , googling etc cant
> seem to get it to work. any help, tips or pointing me in the right
> direction would really be appreciated!
>
> Z
>
> On Sat, Nov 4, 2017 at 5:31 PM, Xebar Saram <zeltakc@gmail.com> wrote:
>
>> sorry to bother again but still stuck with this....
>>
>> i tried to add another org-global-property entry (i assume thats
>> possible) but then i didnt get completion for the second one.
>> this is what i used
>>
>> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
>> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
>> Austrian Greek Fusion")))
>> (add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))
>>
>> can anyone point me to the correct syntax for adding additional
>> org-global-properties?
>>
>> thx alot in advance
>>
>> Z
>>
>>
>> On Sat, Oct 28, 2017 at 9:44 PM, Xebar Saram <zeltakc@gmail.com> wrote:
>>
>>> thx so much
>>>
>>> that works well. i tried to add another org-global-property entry (i
>>> assume thats possible) but then i didnt get completion for the second one.
>>> this is what i used
>>>
>>> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
>>> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
>>> Austrian Greek Fusion")))
>>> (add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))
>>>
>>> i assume my syntax is wrong?
>>>
>>> thx!
>>>
>>> Z
>>>
>>> On Sat, Oct 28, 2017 at 12:37 PM, Nicolas Goaziou <
>>> mail@nicolasgoaziou.fr> wrote:
>>>
>>>> Hello,
>>>>
>>>> Xebar Saram <zeltakc@gmail.com> writes:
>>>>
>>>> > ;; Effort and global properties
>>>> > (setq org-global-properties '(("Effort_ALL". "0 0:10 0:20 0:30 1:00
>>>> 2:00
>>>> > 3:00 4:00 6:00 8:00")))
>>>> >
>>>> >
>>>> >
>>>> > (add-to-list 'org-capture-templates
>>>> > '("f" "Food"
>>>> > entry
>>>> > (file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
>>>> > "Inbox")
>>>> > "* COOK %^{Recipe Name}
>>>> > :PROPERTIES:
>>>> > :ID: %(org-id-uuid)
>>>> > :Effort_ALL: %^{Effort_ALL}p
>>>> > :END:
>>>> > "
>>>> > "Capture Template for food recipe"
>>>> > ))
>>>>
>>>> "XYZ_ALL" is a special property defining allowed values for "XYZ". In
>>>> you case, you will get completion for "Effort" with:
>>>>
>>>>   :Effort: %^{Effort}p
>>>>
>>>>
>>>> Regards,
>>>>
>>>> --
>>>> Nicolas Goaziou
>>>>
>>>
>>>
>>
>

[-- Attachment #2: Type: text/html, Size: 6401 bytes --]

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

* Re: using org-global-properties in capture templates
  2017-12-03  1:28         ` Adrian Bradd
@ 2017-12-03 12:53           ` Xebar Saram
  0 siblings, 0 replies; 8+ messages in thread
From: Xebar Saram @ 2017-12-03 12:53 UTC (permalink / raw)
  To: Adrian Bradd; +Cc: org mode, Nicolas Goaziou

[-- Attachment #1: Type: text/plain, Size: 4111 bytes --]

Hi

thank you Adrian so so much, i hugely appreciate this!

this works perfectly now, thx for pointing me in the right direction

have a great week!

Z

On Sun, Dec 3, 2017 at 3:28 AM, Adrian Bradd <adrian.bradd@gmail.com> wrote:

> Hello,
>
> It looks like you have one too many parenthesis around the Rating entry.
> org-global properties is supposed to be a list of cons cells. The below
> should work:
>
> #+BEGIN_SRC elisp
> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
> Austrian Greek Fusion")))
> (add-to-list 'org-global-properties '("Rating_ALL". "- 1 2 3 4 5"))
> #+END_SRC
>
> Below is a version that worked for me with all three properties. I declare
> the properties all in one list instead of adding them.
>
> #+BEGIN_SRC elisp
> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
> Austrian Greek Fusion") ("Effort_ALL" . "0 0:10 0:20 0:30 1:00 2:00 3:00
> 4:00 6:00 8:00") ("Rating_ALL" . "- 1 2 3 4 5")))
>
>  (setq org-capture-templates
>   '(("f" "Food"
>     entry
>     (file+headline  "~/tmp/tmp.org" "Inbox")
>     "* COOK %^{Recipe Name}
>     :PROPERTIES:
>     :ID: %(org-id-uuid)
>     :Time: %^{minutes|-|10|15|30|60}
>     :Effort: %^{Effort}p
>     :Rating: %^{Rating}p
>     :Cuisine: %^{Cuisine}p
>     :END:
>     "
>     "Capture Template for food recipe")))
> #+END_SRC
>
> HTH,
>
> Adrian
>
> On 22 November 2017 at 04:52, Xebar Saram <zeltakc@gmail.com> wrote:
>
>> Hi all
>>
>> sorry to nudge but after spending alot of time on this , googling etc
>> cant seem to get it to work. any help, tips or pointing me in the right
>> direction would really be appreciated!
>>
>> Z
>>
>> On Sat, Nov 4, 2017 at 5:31 PM, Xebar Saram <zeltakc@gmail.com> wrote:
>>
>>> sorry to bother again but still stuck with this....
>>>
>>> i tried to add another org-global-property entry (i assume thats
>>> possible) but then i didnt get completion for the second one.
>>> this is what i used
>>>
>>> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
>>> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
>>> Austrian Greek Fusion")))
>>> (add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))
>>>
>>> can anyone point me to the correct syntax for adding additional
>>> org-global-properties?
>>>
>>> thx alot in advance
>>>
>>> Z
>>>
>>>
>>> On Sat, Oct 28, 2017 at 9:44 PM, Xebar Saram <zeltakc@gmail.com> wrote:
>>>
>>>> thx so much
>>>>
>>>> that works well. i tried to add another org-global-property entry (i
>>>> assume thats possible) but then i didnt get completion for the second one.
>>>> this is what i used
>>>>
>>>> (setq org-global-properties '(("Cuisine_ALL". "- Indian Thai Vietnamese
>>>> Asian Chinese Israeli Italian American EastEuro Mexican French Persian
>>>> Austrian Greek Fusion")))
>>>> (add-to-list 'org-global-properties '(("Rating_ALL". "- 1 2 3 4 5")))
>>>>
>>>> i assume my syntax is wrong?
>>>>
>>>> thx!
>>>>
>>>> Z
>>>>
>>>> On Sat, Oct 28, 2017 at 12:37 PM, Nicolas Goaziou <
>>>> mail@nicolasgoaziou.fr> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> Xebar Saram <zeltakc@gmail.com> writes:
>>>>>
>>>>> > ;; Effort and global properties
>>>>> > (setq org-global-properties '(("Effort_ALL". "0 0:10 0:20 0:30 1:00
>>>>> 2:00
>>>>> > 3:00 4:00 6:00 8:00")))
>>>>> >
>>>>> >
>>>>> >
>>>>> > (add-to-list 'org-capture-templates
>>>>> > '("f" "Food"
>>>>> > entry
>>>>> > (file+headline (lambda () (concat pmm "/org/files/agenda/food.org"))
>>>>> > "Inbox")
>>>>> > "* COOK %^{Recipe Name}
>>>>> > :PROPERTIES:
>>>>> > :ID: %(org-id-uuid)
>>>>> > :Effort_ALL: %^{Effort_ALL}p
>>>>> > :END:
>>>>> > "
>>>>> > "Capture Template for food recipe"
>>>>> > ))
>>>>>
>>>>> "XYZ_ALL" is a special property defining allowed values for "XYZ". In
>>>>> you case, you will get completion for "Effort" with:
>>>>>
>>>>>   :Effort: %^{Effort}p
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>> --
>>>>> Nicolas Goaziou
>>>>>
>>>>
>>>>
>>>
>>
>

[-- Attachment #2: Type: text/html, Size: 7402 bytes --]

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

end of thread, other threads:[~2017-12-03 12:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-28  6:05 using org-global-properties in capture templates Xebar Saram
2017-10-28  9:37 ` Nicolas Goaziou
2017-10-28 18:44   ` Xebar Saram
2017-10-31 15:18     ` Xebar Saram
2017-11-04 15:31     ` Xebar Saram
2017-11-22  9:52       ` Xebar Saram
2017-12-03  1:28         ` Adrian Bradd
2017-12-03 12:53           ` Xebar Saram

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