From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juraj Kubelka Subject: org-attach link proposal Date: Fri, 1 Apr 2011 13:02:50 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307f3bb8fe4005049fd95a25 Return-path: Received: from [140.186.70.92] (port=36763 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5c8G-0007Bg-BY for emacs-orgmode@gnu.org; Fri, 01 Apr 2011 07:03:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5c8F-00049y-3K for emacs-orgmode@gnu.org; Fri, 01 Apr 2011 07:03:12 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:47093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5c8F-00049O-04 for emacs-orgmode@gnu.org; Fri, 01 Apr 2011 07:03:11 -0400 Received: by vxk20 with SMTP id 20so3352120vxk.0 for ; Fri, 01 Apr 2011 04:03:10 -0700 (PDT) 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: Org mode mailing list --20cf307f3bb8fe4005049fd95a25 Content-Type: text/plain; charset=UTF-8 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 --20cf307f3bb8fe4005049fd95a25 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,

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

I have one proposal. So at firs= t why:

I would like to do something like this:

* Project documents
=C2=A0=C2=A0:PROPERT= IES:
=C2=A0=C2=A0:Attachments: first.doc second.doc third.doc
=C2=A0=C2=A0:ID: =C2=A0 =C2=A0 =C2=A0 37773ace-b471-4003-a8d1-448e7c= 48f77b
=C2=A0=C2=A0:END:

=C2=A0=C2=A0+ the first document about something1 [[att:firs= t.doc]]
=C2=A0=C2=A0+ the second document =C2=A0[[att:second.doc]= ]
=C2=A0=C2=A0+ the third document [[att:third.doc]]
in order to easily access it just by click on related link.

So I defined method:

(def= un org-attach-open-link (file &optional in-emacs)
=C2=A0=C2= =A0(org-open-file (expand-file-name file (org-attach-dir t)) in-emacs))

and link:

#+LINK: att eli= sp:(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 h= ttp: and others? I am not sure how to do it.

Thank= you!
Juraj
--20cf307f3bb8fe4005049fd95a25--