emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Feature Request: attach link type
@ 2011-02-16 20:39 Darlan Cavalcante Moreira
  2011-03-03 10:18 ` Bastien
  0 siblings, 1 reply; 9+ messages in thread
From: Darlan Cavalcante Moreira @ 2011-02-16 20:39 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-03-10 14:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-16 20:39 Feature Request: attach link type Darlan Cavalcante Moreira
2011-03-03 10:18 ` Bastien
2011-03-04 18:10   ` Darlan Cavalcante Moreira
2011-03-04 21:56     ` Sébastien Vauban
2011-03-04 22:10       ` Darlan Cavalcante Moreira
2011-03-05  9:14     ` Bastien
2011-03-09 18:23       ` Darlan Cavalcante Moreira
2011-03-10 10:24         ` Bastien
2011-03-10 14:52           ` Darlan Cavalcante Moreira

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).