From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +jMcHrA/xF8cOgAA0tVLHw (envelope-from ) for ; Mon, 30 Nov 2020 00:41:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CJpYGbA/xF8lKwAAbx9fmQ (envelope-from ) for ; Mon, 30 Nov 2020 00:41:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D289E940481 for ; Mon, 30 Nov 2020 00:41:19 +0000 (UTC) Received: from localhost ([::1]:33240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjXFm-0001mP-84 for larch@yhetil.org; Sun, 29 Nov 2020 19:41:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjXFD-0001lz-9y for emacs-orgmode@gnu.org; Sun, 29 Nov 2020 19:40:43 -0500 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:53919) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjXF8-00073v-Js for emacs-orgmode@gnu.org; Sun, 29 Nov 2020 19:40:42 -0500 Received: by mail-pj1-x102a.google.com with SMTP id iq13so222158pjb.3 for ; Sun, 29 Nov 2020 16:40:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=6T7BJ4ns3l0ZEZt3wDLovCWpt1VIMIq1XyCPlzRzk5Y=; b=l/BVd2JJ4ocb4F3L/KJ5/+gF4cnGzcRScWo0OKC9IsOUG3fhWmC3579WnfN5Lfoe9r 6jejys3T0yhdzRGEv535hMrRNxlx597HlfxkquD5apsdm1/0aVSyIbQCFIGJ28KIsZDr ZglesUJ6NfMmfHI5aMUOwKhMS8IfwaYo4AH6yG1yKpVjXG419Ug6OXvqA1LsDdYZ7/jz 7BzfbeV2CECrTXTdfWezpBkfeiA3DUfmlRFOHOWuDjZrHNTugiy1T/pyQzav4QKMPft9 OkBIPQ19966XutziXf4eA2/xy1jDowK2zOYTHrC7ByeV4ZehhRD/BJCC/6NBlbmDhDU0 avyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:mail-followup-to:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=6T7BJ4ns3l0ZEZt3wDLovCWpt1VIMIq1XyCPlzRzk5Y=; b=FpOa6MUQ1rjtkfTVY4ypvSwEWzWP2oln6yqGhT1BCaO7BLKqyq+LV2H2P/rD4F6bKT 20dMXYpOYLGr8bRpaPl8M9Ns28xQSRsb11vyJMP+RxniEbyoKAoDj1ZVH6ONVtJOMoOr xOYaIVMhw2myj0TveColsMBTzsSyKfwyjoBcoL/jFY0H41eqzNU96g5IienDJIa2KGzf g6Q4Fc4OBh7Pv6Xm0lzVIYpwJ7muVUHwlubVF2iv6v06Ug4FBQMnhcbGMG3fEM2iMHKF hvi83W/fUPVDUu9QhTHJd+y58c2ct5vIg//jp89Nk0c90ODWNMaKwl/IaMrkzsJbHXsH bZ/w== X-Gm-Message-State: AOAM531yrY+uBMMgzEE7IJBGKZXEXhSoean2wVm0C40KG+poXmt2exbV ZQpEtPK23Bw0ayGqyIZ1mXAbbGN5OsqcGA== X-Google-Smtp-Source: ABdhPJwpytA5Nl07hR2JKisybudoWFcZQbuobchw1pfGLCHTIzZAjk1tZwP3zS2gvVyi+wU+6dT/KQ== X-Received: by 2002:a17:902:c154:b029:d6:efa5:4ce7 with SMTP id 20-20020a170902c154b02900d6efa54ce7mr16240950plj.73.1606696831159; Sun, 29 Nov 2020 16:40:31 -0800 (PST) Received: from localhost (node-1w7jr9qt8om67ooxo0ss8zmqv.ipv6.telus.net. [2001:569:7c1c:f700:dda3:7704:fcf2:15e7]) by smtp.gmail.com with ESMTPSA id q12sm13632978pgv.91.2020.11.29.16.40.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2020 16:40:30 -0800 (PST) From: David Rogers To: emacs-orgmode@gnu.org Subject: Re: set source directory for org-attach References: Mail-Followup-To: emacs-orgmode@gnu.org Date: Sun, 29 Nov 2020 16:40:29 -0800 In-Reply-To: (gyro funch's message of "Sat, 28 Nov 2020 10:04:45 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=davidandrewrogers@gmail.com; helo=mail-pj1-x102a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.98 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=l/BVd2JJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-TUID: xUMJJvKEmkWn gyro funch writes: > Hi, > > I'm relatively new to org-mode. > > I am tending to use org-attach quite a bit as part of my=20 > workflow. > > Instead of having to navigate from default-directory to the=20 > source of > the attachment, it would be great if I could set a better=20 > default. > > I am probably missing something obvious, but is there a way to=20 > set the > default source directory for attachments? > > Any advice is greatly appreciated. > > Thank you for your help.As far as I=E2=80=99m aware, the attachments=20 > need to be kept in a directory that is special and separate,=20 > because *every item* in the directory is treated as an=20 > attachment. If you set this to a different directory, and then=20 > from within your document tried to delete all attachments, then=20 > *everything* in the whole directory would be lost. Wouldn=E2=80=99t it? I=C2=A0think your particular workflow might possibly be better served=20 by creating file: links to all those files instead of attaching=20 them - that way, you can keep your files wherever you wish. It=20 might be safer to treat the attachment function as being a way to=20 manage finished permanent files that no longer need editing, to be=20 included as-is. Section 4 of the Org-mode manual, titled =E2=80=9CHyperlinks=E2=80=9D, show= s=20 everything about links including links to your own files. You may=20 use Org-mode functions to help you create links, or you can type=20 them out by hand - the result is exactly the same, as long as=20 there are no typos of course. --=20 David Rogers