From: Xebar Saram <zeltakc@gmail.com>
To: org mode <emacs-orgmode@gnu.org>
Subject: Capture template creates multiple property drawers, help needed
Date: Sat, 1 Oct 2016 11:51:36 +0300 [thread overview]
Message-ID: <CAOQHXPqbQ9PeiJ=FMuhkwBc=zYBTexsjPzEua7wBS3t3-HcvSQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2593 bytes --]
next reply other threads:[~2016-10-01 8:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-01 8:51 Xebar Saram [this message]
2016-10-01 10:26 ` Capture template creates multiple property drawers, help needed Philip Hudson
2016-10-01 11:05 ` Xebar Saram
2016-10-01 13:25 ` Philip Hudson
2016-10-01 15:55 ` Xebar Saram
2016-10-01 17:52 ` Xebar Saram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOQHXPqbQ9PeiJ=FMuhkwBc=zYBTexsjPzEua7wBS3t3-HcvSQ@mail.gmail.com' \
--to=zeltakc@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).