[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Attachments and refiling
From: |
Darlan Cavalcante Moreira |
Subject: |
Re: [O] Attachments and refiling |
Date: |
Fri, 29 Jul 2011 17:58:27 -0300 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) Emacs/24.0 Mule/6.0 (HANACHIRUSATO) |
I requested this some time ago [1]. While there is not a built-in attach
link type, org provides you with ways to easily create this functionality.
In the setup part in my org-files I put
--8<---------------cut here---------------start------------->8---
#+LINK: attach elisp:(org-open-file (org-attach-expand "%s"))
--8<---------------cut here---------------end--------------->8---
Now I can use the "attach" link type, but org will ask me if I want to
allow executing the elisp code. To avoid this you can even set
org-confirm-elisp-link-function to nil (I don't like this because it allows
any elisp code in links) or you can set org-confirm-elisp-link-not-regexp
appropriately.
In my case I use
: (setq org-confirm-elisp-link-not-regexp "org-open-file")
This works very well.
--
Darlan
[1] http://www.mail-archive.com/address@hidden/msg37613.html
At Fri, 29 Jul 2011 10:33:37 +0200,
Gustav Wikström <address@hidden> wrote:
>
> [1 <text/plain; ISO-8859-1 (quoted-printable)>]
> What about being able to link to attachments in a similar way as one links
> to files or web-pages? Using [[attachment:some_file.sql][some link name]] ?
> Comments? Problems with this?
>
> 2011/7/25 Gustav Wikström <address@hidden>
>
> > To make org-mode look for attachments in the current sub-tree when using
> > org-insert-link would simplify the process of "linking" to attached files
> > (useful at least when exporting). Persistent links, in in this regard, seems
> > like a nice idea!
> >
> > /Gustav
> >
> > 2011/7/24 Bastien <address@hidden>
> >
> >> Hi Gustav,
> >>
> >> Gustav Wikström <address@hidden> writes:
> >>
> >> > Another feature that could improve the use of attachments is to allow
> >> > links to the attached folders also via the C-c C-l interface in a
> >> > similar way as stored links (C-c l ). I.E to get the attachment-folder
> >> > as an item in the C-c C-l buffer with TAB-completion.
> >>
> >> You can already use (setq org-attach-store-link-p t) to create a link
> >> while attaching a file.
> >>
> >> Since links are deleted as soon as they are inserted, this will be
> >> usable only once. We can imagine *persistent links* -- and links to
> >> attached files could be a good example of persistent links.
> >>
> >> What do you think?
> >>
> >> --
> >> Bastien
> >>
> >
> >
> [2 <text/html; ISO-8859-1 (quoted-printable)>]
>
- Re: [O] Attachments and refiling, (continued)
- Re: [O] Attachments and refiling, Darlan Cavalcante Moreira, 2011/07/28
- Re: [O] Attachments and refiling, Bernt Hansen, 2011/07/28
- Re: [O] Attachments and refiling, Gustav Wikström, 2011/07/29
- Re: [O] Attachments and refiling, Bastien, 2011/07/24
- Re: [O] Attachments and refiling, Gustav Wikström, 2011/07/25
- Re: [O] Attachments and refiling, Gustav Wikström, 2011/07/29
- Re: [O] Attachments and refiling,
Darlan Cavalcante Moreira <=