emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Gustav Wikström" <gustav.erik@gmail.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Attachments and refiling
Date: Fri, 29 Jul 2011 09:27:34 +0200	[thread overview]
Message-ID: <CA+SyOP__EVv0aYL_oDVHTAPGWn0c8MANqzrC7ha5dKT-QbtrQw@mail.gmail.com> (raw)
In-Reply-To: <87vcum6d5p.fsf@altern.org>

[-- Attachment #1: Type: text/plain, Size: 2792 bytes --]

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
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 file/heading/sub-tree basis
which defines the base-path to where attachments to that particular
file/heading/sub-tree should reside on the system, relative or non-relative.
This would allow for more atomic solutions if i'm writing a document on the
side of my main setup and want to add some attachments in the same path.

This adds a bit to the complexity of designing the functionality, and
questions about refiling and archiving arise.. But maybe just adding a
warning for these events might be enough as a first step. Although, with
file-properties for attachment directories it might be possible to ask if
the attachment-dir should also be moved (or copied) to this new location.

But still, it is a really nice feature to have control over the
attachments. So from my point of view it seems sound to try to reason about
different solutions to this or at least keep it in mind for future
functionality.

Just some thoughts
Gustav

On Thu, Jul 28, 2011 at 9:51 AM, Bastien <bzg@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. Adding an ATTACH_DIR property will always add an absolute path, so
>   there is no problem when moving an entry with an explicit ATTACH_DIR.
>
> 3. Refiling/archiving subtrees lose track of some attachments when the
>   attach directory "data/" is *relative* to the org file (which is the
>   default) and when the target org file is not in the same directory.
>
> 4. Moving an entry with an ATTACH_DIR_INHERIT will lose attachments
>   when the ATTACH_DIR of the target entry is different.
>
> (3) and (4) are two distinct problems.
>
> I suggest fixing problem (3) by making `org-attach-dir' defaulting to
> "~/.org-attachments/".  I
>
> I suggest fixing problem (4) by explicitely replacing ATTACH_DIR_INHERIT
> with the corresponding ATTACH_DIR when the target subtree has a
> different ATTACH_DIR.
>
> The core idea is that I want to avoid moving files themselves: I think
> it's a risky road, and I hope the solutions above will make this road
> unnecessary.
>
> I'm interested in feedback and ideas about such proposed changes.
>
> Thanks a lot!
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 3343 bytes --]

  parent reply	other threads:[~2011-07-29  7:27 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-15 11:06 Attachments and refiling Gustav Wikström
2011-07-15 11:16 ` Bastien
2011-07-15 14:55   ` Gustav Wikström
2011-07-16 15:50     ` Darlan Cavalcante Moreira
2011-07-19 12:17       ` Gustav Wikström
2011-07-24 20:00         ` Bastien
2011-07-25  0:14           ` Brian van den Broek
2011-07-25  7:10           ` Gustav Wikström
2011-07-25  7:45             ` Bastien
2011-07-25 15:55               ` Darlan Cavalcante Moreira
2011-07-28  7:51                 ` Bastien
2011-07-28 10:38                   ` suvayu ali
2011-07-28 13:46                     ` Nick Dokos
2011-07-28 13:49                       ` suvayu ali
2011-07-28 14:33                         ` Nick Dokos
2011-07-28 17:31                   ` Darlan Cavalcante Moreira
2011-07-28 18:04                     ` Bernt Hansen
2011-07-29  7:27                   ` Gustav Wikström [this message]
2011-08-02  4:02                     ` Matt Lundin
2011-08-29 12:04                       ` Gustav Wikström
2011-07-24 20:07         ` Bastien
2011-07-25  7:21           ` Gustav Wikström
2011-07-29  8:33             ` Gustav Wikström
2011-07-29 20:58               ` Darlan Cavalcante Moreira
2011-08-18 17:33                 ` Bastien
2011-08-18 20:37                   ` Darlan Cavalcante Moreira
2011-08-19  8:46                     ` Bastien
2011-08-19 16:29                       ` Darlan Cavalcante Moreira
2011-08-24 14:12                         ` Bastien
2011-08-24 14:56                           ` Darlan Cavalcante Moreira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+SyOP__EVv0aYL_oDVHTAPGWn0c8MANqzrC7ha5dKT-QbtrQw@mail.gmail.com \
    --to=gustav.erik@gmail.com \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).