* change org-attach *middle* dir
@ 2022-03-05 0:08 JARZz
0 siblings, 0 replies; only message in thread
From: JARZz @ 2022-03-05 0:08 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 894 bytes --]
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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-05 0:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-05 0:08 change org-attach *middle* dir JARZz
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).