emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Rogers <davidandrewrogers@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: set source directory for org-attach
Date: Sun, 29 Nov 2020 16:40:29 -0800	[thread overview]
Message-ID: <s0emtyzr81u.fsf@gmail.com> (raw)
In-Reply-To: <rptvvd$10hh$1@ciao.gmane.io> (gyro funch's message of "Sat, 28 Nov 2020 10:04:45 -0700")

gyro funch <gyromagnetic@gmail.com> writes:

> Hi,
> I'm relatively new to org-mode.
> I am tending to use org-attach quite a bit as part of my 
> workflow.
> Instead of having to navigate from default-directory to the 
> source of
> the attachment, it would be great if I could set a better 
> default.
> I am probably missing something obvious, but is there a way to 
> set the
> default source directory for attachments?
> Any advice is greatly appreciated.
> Thank you for your help.As far as I’m aware, the attachments 
> need to be kept in a directory that is special and separate, 
> because *every item* in the directory is treated as an 
> attachment. If you set this to a different directory, and then 
> from within your document tried to delete all attachments, then 
> *everything* in the whole directory would be lost. Wouldn’t it?

I think your particular workflow might possibly be better served 
by creating file: links to all those files instead of attaching 
them - that way, you can keep your files wherever you wish. It 
might be safer to treat the attachment function as being a way to 
manage finished permanent files that no longer need editing, to be 
included as-is.

Section 4 of the Org-mode manual, titled “Hyperlinks”, shows 
everything about links including links to your own files. You may 
use Org-mode functions to help you create links, or you can type 
them out by hand - the result is exactly the same, as long as 
there are no typos of course.

David Rogers

  reply	other threads:[~2020-11-30  0:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-28 17:04 set source directory for org-attach gyro funch
2020-11-30  0:40 ` David Rogers [this message]
2020-11-30  1:21 ` Ihor Radchenko
2020-11-30 14:14   ` Re[2]: " Gyro Funch

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:

  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=s0emtyzr81u.fsf@gmail.com \
    --to=davidandrewrogers@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).