Thanks for this. Added it to my settings for now =)
/Gustav
2011/8/2 Matt Lundin
> Gustav Wikström writes:
>
> > However I think it also is nice to also be able to use custom names to
> > attachment folders. And it would be nice be able to use some logic with
> > this, like automatically setti
At Wed, 24 Aug 2011 16:12:01 +0200,
Bastien wrote:
>
> Hi Darlan,
>
> Darlan Cavalcante Moreira writes:
>
> > At Fri, 19 Aug 2011 10:46:26 +0200,
> > Bastien wrote:
> >
> > What about org-add-link-type?
>
> Mmhh.. yes. We should be able to use something like:
>
> (org-add-link-type "att
Hi Darlan,
Darlan Cavalcante Moreira writes:
> At Fri, 19 Aug 2011 10:46:26 +0200,
> Bastien wrote:
>
> What about org-add-link-type?
Mmhh.. yes. We should be able to use something like:
(org-add-link-type "attach" 'org-attach-open 'org-attach-export)
> However, I could not make the the
At Fri, 19 Aug 2011 10:46:26 +0200,
Bastien wrote:
What about org-add-link-type?
Besides the new link type name, org-add-link-type can receives two
functions, one used to follow the link and another to export the link.
I was able to make the attach link type work by using org-add-link-type,
whe
Hi Darlan,
Darlan Cavalcante Moreira writes:
> There is probably a way to make the attach link type also work when
> exporting the org buffer, but since I don't need this right now I didn't
> search how to do it.
You could use a `org-export-preprocess-hook' to convert those "attach"
links into
Hello Bastien,
I'm glad to help (even if such a small contribution).
The downside of this hack is that it does not work when you export the
buffer. If you use the file: link type then the link will works when you
export the org buffer, but you have to type the whole path of the attached
file. The
Hi Darlan,
Darlan Cavalcante Moreira writes:
> 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
> #+LINK: attach elisp:(org-open-file (org-attach-expan
Gustav Wikström writes:
> However I think it also is nice to also be able to use custom names to
> attachment folders. And it would be nice be able to use some logic with
> this, like automatically setting the folder name to the same as the
> heading it's attached to. And to allow properties on a
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-at
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
> To make org-mode look for attachments in the current sub-tree when using
> org-insert-l
In case the "not worrying about where.." in (1) is part the purpose of the
attachment functionality the idea of an absolute path seems sound. I agree
with it being a nice feature, and probably the best to have as default.
However I think it also is nice to also be able to use custom names to
attac
> At Thu, 28 Jul 2011 09:51:54 +0200,
> Bastien wrote:
>>
>> Hi Darlan,
>>
>> here is how I see the situation regarding attachments:
>>
>> 1. org-attach.el is nice because it makes it easy to attach a file to a
>>task, while not *worrying* about where the file is on the harddrive.
>>
>> 2.
Regarding (2), is this a design decision? Currently I have the ATTACH_DIR
property of some headings set to a relative path from the org file and it
works perfectly. That is, it is possible to use either absolute or relative
path for the ATTACH_DIR property right now.
But if this is a design decis
suvayu ali wrote:
> On Thu, Jul 28, 2011 at 3:46 PM, Nick Dokos wrote:
> > suvayu ali wrote:
> >
> >> Hi Bastien,
> >>
> >> On Thu, Jul 28, 2011 at 9:51 AM, Bastien wrote:
> >> > I suggest fixing problem (3) by making `org-attach-dir' defaulting to
> >> > "~/.org-attachments/".
> >>
> >> Since
On Thu, Jul 28, 2011 at 3:46 PM, Nick Dokos wrote:
> suvayu ali wrote:
>
>> Hi Bastien,
>>
>> On Thu, Jul 28, 2011 at 9:51 AM, Bastien wrote:
>> > I suggest fixing problem (3) by making `org-attach-dir' defaulting to
>> > "~/.org-attachments/".
>>
>> Since most of us like to put our org files un
suvayu ali wrote:
> Hi Bastien,
>
> On Thu, Jul 28, 2011 at 9:51 AM, Bastien wrote:
> > I suggest fixing problem (3) by making `org-attach-dir' defaulting to
> > "~/.org-attachments/".
>
> Since most of us like to put our org files under version control,
> maybe setting it to
>
> (concat org-
Hi Bastien,
On Thu, Jul 28, 2011 at 9:51 AM, Bastien wrote:
> I suggest fixing problem (3) by making `org-attach-dir' defaulting to
> "~/.org-attachments/".
Since most of us like to put our org files under version control,
maybe setting it to
(concat org-directory "/.org-attachments/")
would b
Hi Darlan,
here is how I see the situation regarding attachments:
1. org-attach.el is nice because it makes it easy to attach a file to a
task, while not *worrying* about where the file is on the harddrive.
2. Adding an ATTACH_DIR property will always add an absolute path, so
there is no p
As I see changing the attach directory to point to the original one is the
easiest solution that has no chances of breaking anything and would keep
attachments working in the refiled/archived sub-trees.
Maybe a org-attach-move-files function could also be implemented to easily
move an attachment
Gustav Wikström writes:
> I'm leaning towards not moving my archive to a different folder. I
> like having the attachments relative.
Okay.
But as Darlan pointed out, moving the attached files when refiling the
entry might be dangerous, because files in this attached directory can
also be atta
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
> Hi Gustav,
>
> Gustav Wik
I'm leaning towards not moving my archive to a different folder. I like
having the attachments relative.
Are archive- and refile-hooks implemented b.t.w.? This would make it
possible to hack a personal setting, or am I wrong?
/Gustav
2011/7/24 Bastien
> Hi Gustav and Darlan,
>
> one solution I
2011/7/24 Bastien :
> Hi Gustav and Darlan,
>
> one solution I can think of is to set `org-attach-directory'
> to an absolute path instead of "data/" (the current default
> value).
>
> This way, refiling an entry will not lose attachments.
>
> I'm considering using "~/.org-data/" as the default val
Hi Gustav,
Gustav Wikström 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-comp
Hi Gustav and Darlan,
one solution I can think of is to set `org-attach-directory'
to an absolute path instead of "data/" (the current default
value).
This way, refiling an entry will not lose attachments.
I'm considering using "~/.org-data/" as the default value.
What do you think?
--
Bast
Ok. I would really like attachments to be integrated with refiling though
even if it was a non-default option. 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
I use org-attach regularly and consider it to be a great feature of
org-mode. Since I only attach to the sub-tree (instead of to a different
file) I have not this problem. However, sometimes a set the attach
directory of two different headings to the same folder (when it makes
sense) and if org al
Hello Bastien!
To clarify a bit. Lets say I have a file c:\temp\agenda.org (I'm calling it
file 'a').
When marked with TODO item: done, headings in this file are archived to
another file called c:\temp\archive\agenda.org_archive ('b')
If i use C-c C-a to attach a file to a certain topic in 'a' a
Hi Gustav,
Gustav Wikström writes:
> Is it possible to make attachment-folders move with the headings when
> refiling them to other locations?
I'm not sure what you mean.
Can you give an example?
--
Bastien
Is it possible to make attachment-folders move with the headings when
refiling them to other locations?
Regards
Gustav
30 matches
Mail list logo