From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Conditional capture template headline based on tag? Date: Wed, 29 Aug 2012 10:25:10 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6k8o-0005r1-VN for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 11:25:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6k8l-0000oj-13 for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 11:25:14 -0400 Received: from mail-vc0-f169.google.com ([209.85.220.169]:60101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6k8k-0000oE-SR for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 11:25:10 -0400 Received: by vcbfl13 with SMTP id fl13so902504vcb.0 for ; Wed, 29 Aug 2012 08:25:10 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode My main org file for work is something like so: #+begin_src org * Tasks General tasks here * Proj 1 :proj1: ** Tasks ** Notes * Proj 2 :proj2: ** Tasks ** Notes etc. #+end_src Just wondering if a capture template could be setup to file into the "Tasks" headline (sub-headline) of the matching top level headline with that tag or something similar? I suppose I can refile and enter the headline location manually, but that requires extra work. I thought if I was already entering a tag for a capture item, perhaps there's some fu that could be used to send it accordingly. If this isn't possible, what if I re-split my projects into separate files with a #+filetag. Could it be used to send it to the right file? If there are those who do something like this in a different way, I'm open to suggestions! Thanks, John