From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Feature Request: attach link type Date: Wed, 16 Feb 2011 17:39:08 -0300 Message-ID: <4d5c35ef.0ae9640a.3fc9.0852@mx.google.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=39143 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ppo9b-00061P-JR for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 15:39:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ppo9a-00024Q-Ff for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 15:39:15 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:54365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ppo9a-00024B-DJ for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 15:39:14 -0500 Received: by gyd10 with SMTP id 10so859435gyd.0 for ; Wed, 16 Feb 2011 12:39:13 -0800 (PST) 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: Orgmode Mailing List Hello List, One org-mode feature that I find extremely useful is org-attach. I use it frequently as an easy way to store files associated with a task (in fact, any sub-tree) without worrying too much about where the files are located (for some specific sub-trees I like to set the attach directory). However, sometimes I need to put a link to an attached file in the text in its sub-tree. Up to now I just used the path to the file, but that required me to locate where the file is located in order to insert the link. This is not a lot of work, but destroys the beauty of attached files, IMHO, and I think some "attach link type" would be a better solution. Using the functions already provided by org-attach I could get #+LINK: attach elisp:(org-open-file (org-attach-expand "%s")) However, I always have to confirm the execution of the elisp code. It would be better if this link type was already provided in org (possible when org-attach is loaded). Besides, org inline images should work with this link type. Other useful things (just random thoughts) could be: - Perform some operation when a file is attached, such as replacing white-spaces in the file-name by underscores - When a file is attached a link to it could be stored in the kill ring, in case the user want to insert it in the current text. Alternatively, an interactive function to insert a link to an attached file (using the same completions we already get for opening attached files) would also be very handy. -- Darlan