From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philip Hudson Subject: Re: Capture template creates multiple property drawers, help needed Date: Sat, 1 Oct 2016 14:25:33 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqKIe-0003Lx-El for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 09:25:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqKIc-0004fF-1c for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 09:25:55 -0400 Received: from mail-vk0-x22f.google.com ([2607:f8b0:400c:c05::22f]:36810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqKIb-0004f8-Rx for emacs-orgmode@gnu.org; Sat, 01 Oct 2016 09:25:53 -0400 Received: by mail-vk0-x22f.google.com with SMTP id y190so95163803vkd.3 for ; Sat, 01 Oct 2016 06:25:53 -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: Xebar Saram Cc: emacs orgmode-mailinglist Your target location defines how many stars you need at the top-level of your capture template. Each successive level of sub-heading then starts on its own line with one more leading star, just the same as anywhere else in org-mode. I use a certain capture template for a type of task with required subtasks. That template could be massively simplified as: ** TODO Finalize %?%^{item} SCHEDULED: <%(my-next-next-working-day)> *** TODO Process %\1 SCHEDULED: <%(my-next-working-day)> **** TODO Prepare %\1 SCHEDULED: %t WFM with target heading "* Captures" in file "Todo.org" On 1 October 2016 at 12:05, Xebar Saram wrote: > 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 > > -- Phil Hudson http://hudson-it.ddns.net @UWascalWabbit PGP/GnuPG ID: 0x887DCA63