From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature Request: changes regarding attachments and subtasks Date: Thu, 3 Sep 2009 08:51:22 +0200 Message-ID: <8D067FFB-DC0E-41B9-937E-3811AA4AC037@gmail.com> References: <1251923376.14927.123.camel@gtelw26.gtel.ufc.br> Mime-Version: 1.0 (Apple Message framework v936) 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 1Mj6AM-0005r6-Tl for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 02:51:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mj6AI-0005pP-FF for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 02:51:30 -0400 Received: from [199.232.76.173] (port=40920 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mj6AI-0005pL-4u for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 02:51:26 -0400 Received: from mx20.gnu.org ([199.232.41.8]:12901) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mj6AH-0008WT-Mi for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 02:51:25 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mj6AH-0004Ta-3X for emacs-orgmode@gnu.org; Thu, 03 Sep 2009 02:51:25 -0400 Received: by mail-ew0-f211.google.com with SMTP id 7so280396ewy.31 for ; Wed, 02 Sep 2009 23:51:24 -0700 (PDT) In-Reply-To: <1251923376.14927.123.camel@gtelw26.gtel.ufc.br> 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: Darlan Cavalcante Moreira Cc: org-mode Mailinglist On Sep 2, 2009, at 10:29 PM, Darlan Cavalcante Moreira wrote: > Hello orgers, > > I have a task with several subtasks and some of them are associated > with > an external PDF file. Since in this case each PDF file exists only for > the corresponding subtask, I think using attachments is a better > option > then storing the PDFs somewhere and using hyperlinks. > > If each subtask has its own directory everything is fine and using > "C-c > C-a o" on a subtask with only one PDF will open the PDF without > further > questions. However, I'd like to have all subtasks files stored in the > same folder but still be able to reference only the specific subtask > file. > > For instance, I have set the :ATTACH_DIR: property of the parent > task to > something such as "parent_task_files" and the :ATTACH_DIR_INHERIT: > property to "t". Then in a "subtask1" I have added the file > "file1" (using C-c C-a a) and in "subtask2" I have added the file > "file2". Both of them were added to the folder > "data/parent_task_files" (which is what I want) but no information > (property) is added to the subtasks. Therefore, if I go to subtask1 > and > try to open the file with "C-c C-a o" it will ask me each file to > open: > file1 or file2. > > My suggestion is that when I add a file to a subtask in this case it > should add the property :Atachments: "filename" such that even if all > files are stored in the same folder, only the files that I added to > this > subtask is associated with it. Hi Darlan, The property with the list of attachments is occasionally updated by org, using a directory listing. So the change you propose would not persist. One way out would be to create a link to the file: Visit it when it is already in the attachment directory and store a link. Another possibility would be a new link type attach: which does find the correct directory using inheritance. But I Guess this would be a fragile construct. - Carsten > > > ps: I'm using org 6.28e > > > -- > > _________________________ > Darlan Cavalcante Moreira > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode