From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: using org-global-properties in capture templates Date: Sat, 28 Oct 2017 21:44:02 +0300 Message-ID: References: <8760azy5mx.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1b4210094532055c9fca6f" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8W5V-0000T6-Dz for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 14:44:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8W5U-0007ww-2G for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 14:44:05 -0400 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:51440) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e8W5T-0007w8-RG for emacs-orgmode@gnu.org; Sat, 28 Oct 2017 14:44:04 -0400 Received: by mail-wr0-x229.google.com with SMTP id j15so8835134wre.8 for ; Sat, 28 Oct 2017 11:44:03 -0700 (PDT) In-Reply-To: <8760azy5mx.fsf@nicolasgoaziou.fr> 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 --94eb2c1b4210094532055c9fca6f Content-Type: text/plain; charset="UTF-8" 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 > --94eb2c1b4210094532055c9fca6f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 Am= erican EastEuro Mexican French Persian Austrian Greek Fusion")))
=
(add-to-list 'org-global-properties '(("Rating_ALL".= "- 1 2 3 4 5")))

i assume my synt= ax 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&= gt; 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

--94eb2c1b4210094532055c9fca6f--