emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Capture template creates multiple property drawers, help needed


From: Xebar Saram
Subject: Re: [O] Capture template creates multiple property drawers, help needed
Date: Sat, 1 Oct 2016 14:05:29 +0300

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 <address@hidden> wrote:
You need to put the timestamp (%u) /after/ the drawer in the template.

On 01/10/2016, Xebar Saram <address@hidden> 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
>


--
address@hidden                      PGP/GnuPG ID: 0x887DCA63


reply via email to

[Prev in Thread] Current Thread [Next in Thread]