1 line
1.9 KiB
Plaintext
1 line
1.9 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>File links break all the time, for instance after reorganize your directory structure. This can take many time to fix broken link manually. I need a solution to prevent all file reference in my org-agenda-files are broken.</p> <p>My current solution to prevent the issue is to use hardlink in org-agenda-files ```</p> <h1>assume I want add /a/b/c.org into emacs variable <code>org-agenda-files</code></h1> <p>mkdir ~/.emacs.d/org-agenda-files</p> <h1>create hardlink of c.org in dir org-agenda-files</h1> <p>ln /a/b/c.org ~/.emacs.d/org-agenda-files/c.org </p> <h1>add ~/.emacs.d/org-agenda-files/c.org to emacs variable <code>org-agenda-files</code></h1> <p>```</p> <p>However, this solution has some limit. For instance, - the absolute path of "c.org" become <code>~/.emacs.d/org-agenda-files/c.org</code>. So its relative link are broken.</p> <p>LinkTek propose a much better solution: <a href="https://linktek.com/do-this-one-trick-and-never-worry-about-broken-file-links-again/">https://linktek.com/do-this-one-trick-and-never-worry-about-broken-file-links-again/</a></p> <blockquote> <p>LinkTek creates an additional association between the parent file and each of its child files. LinkFixer Advanced uses that secondary association to quickly and automatically fix all the links that get broken by whatever changes someone makes to your files.</p> </blockquote> <p>What solution you use for the problem of broken link? Exist an implementation of solution proposed by LinkTek for org mode?</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/terhyrzht"> /u/terhyrzht </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/rb1ams/fix_broken_link_after_moverename_linked_file/">[link]</a></span>   <span><a href="https://www.reddit.com/r/orgmode/comments/rb1ams/fix_broken_link_after_moverename_linked_file/">[comments]</a></span> |