Thanks for this. Added it to my settings for now =)
/Gustav
2011/8/2 Matt Lundin m...@imapmail.org
Gustav Wikström gustav.e...@gmail.com 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
Hi Darlan,
Darlan Cavalcante Moreira darc...@gmail.com writes:
At Fri, 19 Aug 2011 10:46:26 +0200,
Bastien b...@altern.org 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,
At Wed, 24 Aug 2011 16:12:01 +0200,
Bastien b...@altern.org wrote:
Hi Darlan,
Darlan Cavalcante Moreira darc...@gmail.com writes:
At Fri, 19 Aug 2011 10:46:26 +0200,
Bastien b...@altern.org wrote:
What about org-add-link-type?
Mmhh.. yes. We should be able to use something
Hi Darlan,
Darlan Cavalcante Moreira darc...@gmail.com 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
At Fri, 19 Aug 2011 10:46:26 +0200,
Bastien b...@altern.org 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
Hi Darlan,
Darlan Cavalcante Moreira darc...@gmail.com 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
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.
Gustav Wikström gustav.e...@gmail.com 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
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
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 gustav.e...@gmail.com
To make org-mode look for attachments in the current sub-tree when
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
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
Hi Bastien,
On Thu, Jul 28, 2011 at 9:51 AM, Bastien b...@altern.org 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
suvayu ali fatkasuvayu+li...@gmail.com wrote:
Hi Bastien,
On Thu, Jul 28, 2011 at 9:51 AM, Bastien b...@altern.org 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
On Thu, Jul 28, 2011 at 3:46 PM, Nick Dokos nicholas.do...@hp.com wrote:
suvayu ali fatkasuvayu+li...@gmail.com wrote:
Hi Bastien,
On Thu, Jul 28, 2011 at 9:51 AM, Bastien b...@altern.org wrote:
I suggest fixing problem (3) by making `org-attach-dir' defaulting to
~/.org-attachments/.
suvayu ali fatkasuvayu+li...@gmail.com wrote:
On Thu, Jul 28, 2011 at 3:46 PM, Nick Dokos nicholas.do...@hp.com wrote:
suvayu ali fatkasuvayu+li...@gmail.com wrote:
Hi Bastien,
On Thu, Jul 28, 2011 at 9:51 AM, Bastien b...@altern.org wrote:
I suggest fixing problem (3) by making
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
At Thu, 28 Jul 2011 09:51:54 +0200,
Bastien b...@altern.org 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.
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 b...@altern.org
Hi Gustav and Darlan,
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 b...@altern.org
Hi Gustav,
Gustav Wikström gustav.e...@gmail.com 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
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
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?
--
Bastien
Hi Gustav,
Gustav Wikström gustav.e...@gmail.com 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
2011/7/24 Bastien b...@altern.org:
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
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
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
Hi Gustav,
Gustav Wikström gustav.e...@gmail.com 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
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'
29 matches
Mail list logo