From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: Capture template creates multiple property drawers, help needed Date: Sat, 1 Oct 2016 14:05:29 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114e4b1657565f053dcbb07f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqI6n-0001tm-5F for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 07:05:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqI6k-0003Yy-HB for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 07:05:31 -0400 Received: from mail-yw0-x234.google.com ([2607:f8b0:4002:c05::234]:35714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqI6k-0003Ym-B3 for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 07:05:30 -0400 Received: by mail-yw0-x234.google.com with SMTP id t193so3992372ywc.2 for ; Sat, 01 Oct 2016 04:05:30 -0700 (PDT) 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: Philip Hudson Cc: emacs orgmode-mailinglist --001a114e4b1657565f053dcbb07f Content-Type: text/plain; charset=UTF-8 got it thx Phillip, appreciate it! in a related continued issue, how does one define a sub header in the capture that will translate correctly to a lower level header than the main orc capture? i have tried both this inside a capture: %^{prompt|*** Ingredients} and also just using 2 stars ** sub header yet none of them create a sub header. any clue guys? Z On Sat, Oct 1, 2016 at 1:26 PM, Philip Hudson wrote: > You need to put the timestamp (%u) /after/ the drawer in the template. > > On 01/10/2016, Xebar Saram wrote: > > 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 > > > > > -- > phil.hudson@iname.com PGP/GnuPG ID: 0x887DCA63 > --001a114e4b1657565f053dcbb07f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
got it thx Phillip, appreciate it!

in a= related continued issue, how does one define a sub header in the capture t= hat will translate correctly to a lower level header than the main orc capt= ure?

i have tried both this inside a capture:

=C2=A0 %^{prompt|*** Ingredients}


and also just using 2 stars

** sub header

yet none of them create a s= ub header. any clue guys?

Z



On Sat, Oct 1, 2016 at 1:26 PM, Philip Hudson <phil.hudson@iname.com= > wrote:
You need to put th= e timestamp (%u) /after/ the drawer in the template.

On 01/10/2016, Xebar Saram <zeltakc= @gmail.com> wrote:
> Hi all
>
> so i have this useful to me capture template
>
> (add-to-list 'org-capture-templates
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &= #39;("un" "resturant"
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 entry
>=C2=A0 =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 =C2=A0"* TOVISIT %^{Description}
>=C2=A0 =C2=A0 =C2=A0%u
>=C2=A0 =C2=A0:PROPERTIES:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0:Rating: %^{rating?|-|1|2|3|4|5}
>=C2=A0 =C2=A0 =C2=A0 =C2=A0:price: %^{price in local currancy?|-|0-10|1= 0-20|20-30|30-50|50+}
>=C2=A0 =C2=A0 =C2=A0 =C2=A0:Source: %^{Source?}
>=C2=A0 =C2=A0 =C2=A0 =C2=A0:Type: %^{Type?|meal|breakfeast|dessert= |street}
>=C2=A0 =C2=A0 =C2=A0 =C2=A0:Cuisine:
> %^{Cuisine?|-|Indian|Thai|Vietnamese|Asian|Chinese|Israeli|I= talian|American|EastEuro|Mexican|French|Persian|Austrian|Japan} >=C2=A0 =C2=A0 =C2=A0 =C2=A0:Fav: %^{Fav|-|yes|no}
>=C2=A0 =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 =C2=A0 =C2=A0 ))
>
>
> as you can see im constructing a capture template that will add a prop= ery
> 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, dat= e
> etc) these create another property drawer. this looks like this
>
> **** TOVISIT Ample hill ice cream
>=C2=A0 =C2=A0 =C2=A0 :PROPERTIES:
>=C2=A0 =C2=A0 =C2=A0 :ID:=C2=A0 =C2=A0 =C2=A0 =C2=A006a84670-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
> :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
>


--
phil.hudson@iname.com=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PGP/G= nuPG ID: 0x887DCA63

--001a114e4b1657565f053dcbb07f--