On 21/07/2022 02:12, Janek F wrote:
However I tend to customize IDs for important files by hand, causing any attempt to use org-attach on that file to fail if the ID is shorter than six characters: org-attach-id-ts-folder-format: Args out of range: "ftt", 0, 6 This method should be adjusted to handle non-ts-ids just as well, as org-id-method does not dictate the format of existing ids.
There are should be no such restriction for CUSTOM_ID links (referenced using #anchor). IDs used for attachments assume particular format and consistent layout of files. Janek, could you, please, provide some details concerning your use case. I am interested why you decided to avoid CUSTOM_ID for headings important to you.
As I wrote yesterday, you can customize Org to use directories for attachments you like.