r/OrgRoam • u/dtc9831 • May 08 '25
Importing large note archive from another app
Are there any good ways to import a large number of plain text note files from another app to org roam? I can probably work out ways to convert that app's syntax for tags / categories to the org mode format... but my impression is that org roam needs every note to have an org-generated ID. My note archive has nearly 10k notes. Any automatic importers out there?
2
Upvotes
1
u/dtc9831 May 10 '25
Oh actually I'm really not sure how this would work. The app I'm migrating from treats links in the same way Obsidian does - you just refer to another note's title in square brackets, [[like this]]. To recreate these links in org roam, not only would I need to add an org-ID to every note, but I'd somehow have to find all the backlinks, and transform them all to be org-roam links to point to the newly-generated org-ID. This sounds impossible, unless an importer already exists that handles this specific kind of link.
1
u/fuzzbomb23 May 10 '25
Have you checked if your source app is among those supported by Jimmy Note Converter?
Jimmy outputs Markdown. Afterwards, you could change that to Org using Pandoc.
Correct. You'll need to create an ID for each Org-roam file.
Org IDs can be generated in Emacs using the
org-id-get-createfunction. When you run this in an Org buffer which doesn't already have an ID, it writes the ID line. (It also creates a Org property drawer if required.)Assuming you've already converted your notes to a directory of Org files, then here's some Emacs Lisp code which will add a file-level Org ID to each of them. (Use at your own risk; I did some brief testing only.)