From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Capture/refile and file+headline inquiry Date: Wed, 27 Jul 2011 13:43:16 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qm94h-00089d-8I for emacs-orgmode@gnu.org; Wed, 27 Jul 2011 14:43:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qm94g-0003G8-1n for emacs-orgmode@gnu.org; Wed, 27 Jul 2011 14:43:19 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:49155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qm94f-0003G1-M5 for emacs-orgmode@gnu.org; Wed, 27 Jul 2011 14:43:18 -0400 Received: by ewy9 with SMTP id 9so1829007ewy.0 for ; Wed, 27 Jul 2011 11:43:16 -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 1) How might it be possible to set custom expansion headlines for capture templates? For example, using the symbols from the capture note itself (kind of), something like this: ----- (setq org-capture-templates '(("j" "journal" entry (file+olp "~/org/refile.org" "Journals" "%yyyy-mm") "* %u %? \n" :clock-in t :clock-resume t))) ----- To produce something like: * Journals ** 2011-Jul *** [2011-07-27 Wed] thing I'm capturing 2) Also, it seems that capture needs a single target file (refile.org above), but most of the time, I just like to use it as an interface to quickly file to any file. The tree structure options seem to only apply to the target file; when refiling within capture (C-c C-w to a file vs. sending off to refile.org), it will just send the headline itself to something I have to manually specify for the refile target. In other words: --- C-c C-c automatically puts it into a datetree or whatever in refile.org --- C-c C-w requires that I have the same datetree structure manually created in a file other than refile.org, and then I have to choose it by typing some letters, tabbing to completion, typing the next level headline, tab completing, etc. How can I refile to a set tree structure across any number of files via capture? Thanks, John