I have an org file that has content like below:
:PROPERTIES: :ID: 6dc9fdfe-d24a-4eaf-8152-1f663ba70a2e :END: #+title: example * Header [[attachment:filename]]
Here the file
filename is in the folder that is named based on the ID value:
.attach/6d/c9fdfe-d24a-4eaf-8152-1f663ba70a2e, and I can link to the file without any issue.
After I run
* Header, I had a new ID added for the header, and it becomes something like below
* Header :PROPERTIES: :ID: cd858afc-45ca-4f3d-bde8-a6f68c8acad0 :END: [[attachment:filename]]
Now the attachment link to the file
filename does not work any more, I have to move the file to a new folder for the new ID created, i.e.,
This is annoying and I just wonder if there is a way to let the header
* Header to search attachment in its parent's attachment folder as well? I tried to set
org-attach-use-inheritance or set
t, but neither works.