From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-capture target files Date: Sun, 23 Sep 2012 12:11:30 +0200 Message-ID: <878vc1rqul.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFj9t-0001m4-0G for emacs-orgmode@gnu.org; Sun, 23 Sep 2012 06:11:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFj9r-0002iz-SQ for emacs-orgmode@gnu.org; Sun, 23 Sep 2012 06:11:28 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:63248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFj9r-0002iv-LB for emacs-orgmode@gnu.org; Sun, 23 Sep 2012 06:11:27 -0400 Received: by wibhq4 with SMTP id hq4so3121708wib.12 for ; Sun, 23 Sep 2012 03:11:27 -0700 (PDT) In-Reply-To: (Kalev Takkis's message of "Sun, 16 Sep 2012 00:25:59 +0300") 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: Kalev Takkis Cc: emacs-orgmode@gnu.org Hi Kalev, Kalev Takkis writes: > Is it possible to take a note in org-capture and to specify one or > several files to put the message into only after the note is written? You can refile a note from the capture buffer with C-c C-w. I added a command to /copy/ the note instead of refiling it: C-c M-w. Finding the copying location works the same way than for refile. So now you can copy the item from the capture buffer to several files. > The workflow I have in mind is first pressing C-c c to take a note; > selecting the type of note I'd like to take; typing the message, > pasting a link etc., finishing the note, with C-c C-c and then ending > up in a list of available *.org files (which could already be on > display in a window next to capture window) from which I can select > the file(s) where to send the note to. The available process is a bit different: capture, edit, refile or copy, then finalize the capture process. > After some ferocious googling > for  the past two months it seems that this kind of system does not > exist (right?).  Two months of googling! Phew. :) > But would it be possible to write something like that? After > consulting with the org-capture.el file I have some doubts, all > capture templates expect the destination file to be known beforehand, Yes -- hence the different process describe above. > and the filename is resolved early in the  capture process. There is > a template where a function is supposed to find the target and which > is described as the most flexible way, but since the capture already > happens in the target file in an indirect buffer, I don't think it's > flexibility is enough. > > What do you think, is there a way to do this? Please try the new feature if you can (it is in the git master branch) and let me know if it helps. Best, -- Bastien