emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-attach link proposal


From: Juraj Kubelka
Subject: [O] org-attach link proposal
Date: Fri, 1 Apr 2011 13:02:50 +0200

Hi,

I played a bit with org-attach. It is great package! Thanks for it! :)

I have one proposal. So at first why:

I would like to do something like this:

* Project documents
  :PROPERTIES:
  :Attachments: first.doc second.doc third.doc
  :ID:       37773ace-b471-4003-a8d1-448e7c48f77b
  :END:

  + the first document about something1 [[att:first.doc]]
  + the second document  [[att:second.doc]]
  + the third document [[att:third.doc]]

in order to easily access it just by click on related link.

So I defined method:

(defun org-attach-open-link (file &optional in-emacs)
  (org-open-file (expand-file-name file (org-attach-dir t)) in-emacs))

and link:

#+LINK: att elisp:(org-attach-open-link "%s")

and it works. but always asks if I want to execute elisp code.

Would it be possible to integrate it directly to org-mode like http: and others? I am not sure how to do it.

Thank you!
Juraj

reply via email to

[Prev in Thread] Current Thread [Next in Thread]