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:

  1. any time org-store-link or org-capture called org file, insert copy of exact link being stored/captured current heading's properties. of course, might have wrapper function insert , calls respective org function

  2. on 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.

  3. 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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -