From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Capture template creates multiple property drawers, help needed Date: Sat, 1 Oct 2016 11:51:36 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c033afa85c30f053dc9d1f5 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqG1D-0007Ht-Td for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 04:51:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqG1B-0006zc-HT for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 04:51:38 -0400 Received: from mail-yw0-x22c.google.com ([2607:f8b0:4002:c05::22c]:35009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqG1B-0006zH-BE for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 04:51:37 -0400 Received: by mail-yw0-x22c.google.com with SMTP id t193so3019098ywc.2 for ; Sat, 01 Oct 2016 01:51:37 -0700 (PDT) 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: org mode --94eb2c033afa85c30f053dc9d1f5 Content-Type: text/plain; charset=UTF-8 Hi all so i have this useful to me capture template (add-to-list 'org-capture-templates '("un" "resturant" entry (file+headline "/home/zeltak/org/files/agenda/travel.org" "NYC") "* TOVISIT %^{Description} %u :PROPERTIES: :Rating: %^{rating?|-|1|2|3|4|5} :price: %^{price in local currancy?|-|0-10|10-20|20-30|30-50|50+} :Source: %^{Source?} :Type: %^{Type?|meal|breakfeast|dessert|street} :Cuisine: %^{Cuisine?|-|Indian|Thai|Vietnamese|Asian|Chinese|Israeli|Italian|American|EastEuro|Mexican|French|Persian|Austrian|Japan} :Fav: %^{Fav|-|yes|no} :END: %? " )) as you can see im constructing a capture template that will add a propery drawer. i must be doping something wrong in my syntax as after a while when other input are added to the created header down the road (org-id, date etc) these create another property drawer. this looks like this **** TOVISIT Ample hill ice cream :PROPERTIES: :ID: 06a84670-baa9-4925-be93-b18252d6b684 :END: [2016-10-01 Sat] :PROPERTIES: :Rating: - :price: 0-10 :Source: http://www.amplehills.com/ :Type: dessert :Cuisine: American :Fav: :END: is there anyway to solve this issue? is my capture syntax wrong? best Z --94eb2c033afa85c30f053dc9d1f5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all

so i have this useful to me capt= ure template

(add-to-list 'org-capture-te= mplates
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0'("un" "resturant"
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0entry<= /div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (file+headline "/home/zeltak/org/files/agenda/travel.org" "NYC")
=C2=A0 =C2=A0 = "* TOVISIT %^{Description} =C2=A0=C2=A0
=C2=A0 =C2=A0 %u
=C2=A0 :PROPERTIES:
=C2=A0 =C2=A0 =C2=A0 :Rating: %^{ratin= g?|-|1|2|3|4|5}
=C2=A0 =C2=A0 =C2=A0 :price: %^{price in local cu= rrancy?|-|0-10|10-20|20-30|30-50|50+}
=C2=A0 =C2=A0 =C2=A0 :Sourc= e: %^{Source?}
=C2=A0 =C2=A0 =C2=A0 :Type: %^{Type?|meal|breakfea= st|dessert|street}
=C2=A0 =C2=A0 =C2=A0 :Cuisine: %^{Cuisine?|-|I= ndian|Thai|Vietnamese|Asian|Chinese|Israeli|Italian|American|EastEuro|Mexic= an|French|Persian|Austrian|Japan}
=C2=A0 =C2=A0 =C2=A0 :Fav: %^{F= av|-|yes|no}
=C2=A0 =C2=A0 =C2=A0 :END:
=C2=A0 =C2=A0 %= ?
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0))


as you c= an see im constructing a capture template that will add a propery drawer. i= must be doping something wrong in my syntax as after a while when other in= put are added to the created header down the road (org-id, date etc) these = create another property drawer. this looks like this

**** TOVISIT Ample hill ice cream
=C2=A0 =C2=A0 =C2=A0:PR= OPERTIES:
=C2=A0 =C2=A0 =C2=A0:ID: =C2=A0 =C2=A0 =C2=A0 06a84670-= baa9-4925-be93-b18252d6b684
=C2=A0 =C2=A0 =C2=A0:END:
= =C2=A0 =C2=A0 =C2=A0 =C2=A0[2016-10-01 Sat]
=C2=A0 =C2=A0 =C2=A0:= PROPERTIES:
:Rating: -
:price: 0-10
:Type= : dessert
:Cuisine: American
:Fav:=C2=A0
:END:

is there anyway to solve this issue? is my capture = syntax wrong?

best

Z




--94eb2c033afa85c30f053dc9d1f5--