emacs - Refactoring org files (moving data without breaking links)? -
i'm looking sort of workflow let me move things around freely without breaking links.
since use org-store-link
or org-capture
link anything, i'm considering workflow this:
any time
org-store-link
ororg-capture
called org file, insert copy of exact link being stored/captured current heading's properties. of course, might have wrapper function insert , calls respectiveorg
functionon every save, search current file such identifiers not match exact current location. file moves break links, too, script might should run periodically on org files - maybe on emacs start-up.
if non-matches found, search backlinks point old identifiers, update backlinks new location, , update identifier new location.
a helper function finds headings org-links them, without identifier, me current org files ready system.
before started, sound idea, how might improved, , has else done it?
org-mode
has option assign unique id each entry , use in links. lets links keep working when target moved. set variable org-id-link-to-org-use-id
t
, id created , stored in id
property. org-insert-link
insert links of id:<id>
.
Comments
Post a Comment