From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Attachment feature - Can I have custom directories? Date: Mon, 19 Jan 2009 12:40:54 +0100 Message-ID: References: <2df907590901101747m6df589a0v1a537a433642f924@mail.gmail.com> <83DF2B38-296E-4595-A3D7-AEFE0473D956@uva.nl> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LOsV1-0002OF-K6 for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 06:40:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LOsV0-0002No-TA for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 06:40:59 -0500 Received: from [199.232.76.173] (port=35681 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOsV0-0002Nl-R1 for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 06:40:58 -0500 Received: from ug-out-1314.google.com ([66.249.92.168]:7669) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LOsV0-0006oP-8t for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 06:40:58 -0500 Received: by ug-out-1314.google.com with SMTP id 36so254027uga.17 for ; Mon, 19 Jan 2009 03:40:57 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Manish Cc: emacs-orgmode@gnu.org Hi Manish, it has always been all the files in the directory. The "Attachments" property is only for show and can get out of sync. You can "add attachments" by just moving or copying files into the attached directory. I think this is the correct behavior. You can set org-attach-file-list-property to nil, then this property will no longer be created, but the entire mechanism till works. - Carsten On Jan 19, 2009, at 12:22 PM, Manish wrote: > On Mon, Jan 19, 2009 at 1:57 PM, Carsten Dominik wrote: >> >> On Jan 11, 2009, at 2:47 AM, Jason Jackson wrote: >> >>> There are many times where I would like to associate an org-mode >>> item with >>> a specific directory of my choosing for attachment directory. >>> >>> Such that, C-c C-a f would open for example ~/docs/project1 >>> and C-c C-a o would open the file inside >>> >>> Of course, I still like the existing functionality of generating >>> random >>> directory names too. >>> >>> Can org-mode do this? >> >> >> You know, I think this could be very useful, so I have >> implemented it. Along with an idea I wanted to have in >> myself: Using the same directory to an entire subtree, so >> that a project may use a single attachment directory. >> >> If you get the new git version, `C-c C-a s' will allow to >> select a directory of your choice. >> >> And `C-c C-a i' will mark an entry as a parent whose children >> will inherit the attachment directory. > > This is great! Thank you. > > I attached an existing directory to a subtree. When I tried to open > an attachment, it offered me all the files available in the directory. > If it's supposed to offer all the files in the attachment directory > then what is the significance of ATTACHMENTS? I was under impression > that it will offer only the files explicitly listed/marked as > attachments (may be it can offer all files when called with a prefix.) > > -- > Manish