From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: using org-global-properties in capture templates Date: Wed, 22 Nov 2017 11:52:53 +0200 Message-ID: References: <8760azy5mx.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045f1d628dd085055e8f48cd" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHRiD-0007wN-2f for emacs-orgmode@gnu.org; Wed, 22 Nov 2017 04:52:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHRiB-0008T8-Ty for emacs-orgmode@gnu.org; Wed, 22 Nov 2017 04:52:57 -0500 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:38920) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eHRiB-0008Sm-Jg for emacs-orgmode@gnu.org; Wed, 22 Nov 2017 04:52:55 -0500 Received: by mail-wr0-x229.google.com with SMTP id 11so10600234wrb.6 for ; Wed, 22 Nov 2017 01:52:55 -0800 (PST) In-Reply-To: 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: Nicolas Goaziou Cc: org mode --f403045f1d628dd085055e8f48cd Content-Type: text/plain; charset="UTF-8" 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 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 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 > > wrote: >> >>> Hello, >>> >>> Xebar Saram 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 >>> >> >> > --f403045f1d628dd085055e8f48cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all

sorry to nudge but after spendin= g 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.c= om> wrote:
sorry to bother again but still stuck with this....

i tried to add another org-global-property entry (i assume th= ats 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 Israe= li Italian American EastEuro Mexican French Persian Austrian Greek Fusion&q= uot;)))
(add-to-list 'org-global-properties '(("Rati= ng_ALL". "- 1 2 3 4 5")))

ca= n anyone point me to the correct syntax for adding additional org-global-pr= operties?

thx alot in advance

=
Z


On Sat, Oct 28, 2017 at 9:44 PM, Xeb= ar Saram <zeltakc@gmail.com> wrote:
thx so much
<= br>
that works well. i tried to add another org-global-property e= ntry (i assume thats possible) but then i didnt get completion for the seco= nd one.
this is what i used

(setq o= rg-global-properties '(("Cuisine_ALL". "- Indian Thai Vi= etnamese Asian Chinese Israeli Italian American EastEuro Mexican French Per= sian Austrian Greek Fusion")))
(add-to-list 'org-global-= properties '(("Rating_ALL". "- 1 2 3 4 5")))
<= /div>

i assume my syntax is wrong?

<= div>thx!

Z

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

Xebar Saram <zelt= akc@gmail.com> writes:

> ;; Effort and global properties
> (setq org-global-properties '(("Effort_ALL". "0 0:1= 0 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 fo= r "XYZ". In
you case, you will get completion for "Effort" with:

=C2=A0 :Effort: %^{Effort}p


Regards,

--
Nicolas Goaziou



--f403045f1d628dd085055e8f48cd--