1 line
1.6 KiB
Plaintext
1 line
1.6 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>I have an org file that has content like below:</p> <blockquote> <p>:PROPERTIES:<br/> :ID: 6dc9fdfe-d24a-4eaf-8152-1f663ba70a2e<br/> :END:<br/> #+title: example </p> <p>* Header<br/> [[attachment:filename]]</p> </blockquote> <p>Here the file <code>filename</code> is in the folder that is named based on the ID value: <code>.attach/6d/c9fdfe-d24a-4eaf-8152-1f663ba70a2e</code>, and I can link to the file without any issue.</p> <p>After I run <code>org-id-get-create</code> for <code>* Header</code>, I had a new ID added for the header, and it becomes something like below</p> <blockquote> <p>* Header<br/> :PROPERTIES:<br/> :ID: cd858afc-45ca-4f3d-bde8-a6f68c8acad0<br/> :END:<br/> [[attachment:filename]]</p> </blockquote> <p>Now the attachment link to the file <code>filename</code> does not work any more, I have to move the file to a new folder for the new ID created, i.e., <code>.attach/cd/858afc-45ca-4f3d-bde8-a6f68c8acad0</code>.</p> <p>This is annoying and I just wonder if there is a way to let the header <code>* Header</code> to search attachment in its parent's attachment folder as well? I tried to set <code>org-attach-use-inheritance</code> or set <code>org-use-property-inheritance</code> to <code>t</code>, but neither works.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/shelper9527"> /u/shelper9527 </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/rmx3nj/how_to_enable_orgmode_to_search_attachment_in/">[link]</a></span>   <span><a href="https://www.reddit.com/r/orgmode/comments/rmx3nj/how_to_enable_orgmode_to_search_attachment_in/">[comments]</a></span> |