emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: JARZz <jarss@protonmail.com>
To: "emacs-orgmode\\@gnu.org" <emacs-orgmode@gnu.org>
Subject: change org-attach *middle* dir
Date: Sat, 05 Mar 2022 00:08:29 +0000	[thread overview]
Message-ID: <Q4aaW5r27Vg_dqUGFm_L1dumNwLoB0GDAZi5-u69xkX7LhGGO2Zf15OjFDE-4EoVjT4VX55HNiFWRik5qh4d-zROiLSjF2zgZT0a3-f_5Jk=@protonmail.com> (raw)

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

Hi,

I know you org-attach-id-dir can change the parent directory from "data" (which I believe is default) to whatever you put there, but I want to change the directory under​ that.

My org-ids are set for the iso date method. This means that by default, attachments are saved into /data/20/220304....

the 20 is the first two letters of the ID, which is 2022 for the year. This doesn't make much sense in my case, since all attachments, pretty much for the next 80 years or so, are going to fit in that dir.. I'd like to either remove that dir entirely (so that the ID dirs are stored in full under the data folder) or that perhaps I can change it so that the sub dir will include the first 4 characters, in my case, 2022, which makes way more sense.

How do I do that?

(setq org-attach-id-dir (concat org-directory "a_2022/"))

Sent with [ProtonMail](https://protonmail.com/) secure email.

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

                 reply	other threads:[~2022-03-05  0:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='Q4aaW5r27Vg_dqUGFm_L1dumNwLoB0GDAZi5-u69xkX7LhGGO2Zf15OjFDE-4EoVjT4VX55HNiFWRik5qh4d-zROiLSjF2zgZT0a3-f_5Jk=@protonmail.com' \
    --to=jarss@protonmail.com \
    --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).