π

Migrating Org Mode Files from org-depend to org-edna

Show Sidebar

Frequent readers of this blog know that I'm in the process of switching from Emacs Org mode org-depend to org-edna because of the additional functionality offered.

I had to convert my existing Org files because both tools are using the same TRIGGER and BLOCKER properties but with different syntax. If the other syntax is found, syntax errors are reported since they don't match.

Therefore, I wrote orgdepend_to_orgedna which does the job of converting Org files from org-depend to org-edna. Since I don't know Elisp good enough, I wrote it in Python. However, I followed the TDD approach and used static typing to ensure a good level of quality.

I used it to convert syntax of my personal use-cases with contains only a limited set of org-depend syntax elements. However, in my opinion, those use-cases reflect the most important use-cases for org-depend so there is high chance that your files do not contain non-recognized syntax to convert. Please do read the "Assumptions and Notes" section of the readme file.

I also included conversion of Elisp snippets which I'm using within my yankpad templates.

If you want to see the details of the migration capabilities, you have to look at the unit test file.

If you're also using org-edna, you should check out org-linker-edna which is a brand new thing that let's you define simple dependencies with minimal effort.

Look at me, I've accomplished to write this blog article without writing "org-elpa" as I've done several times in the recent weeks. ;-)


Related articles that link to this one:

Comment via email (persistent) or via Disqus (ephemeral) comments below: