Not specifically a Roam question though. Does anyone know if Org can link to callback URLs? It just asks me if I want to create a new heading.
Now that Roam seems to become like a library system for so many things in one place for me, I thought it’d be great if I could link into Obsidian vaults directly for deep dives. Obsidian allows this via callback urls.
They look like this obsidian://open?vault=Vaultname&file=Examplefile. I think it trips up because Org expects something from its own library of link types.
So much to still figure out. But looks like I’ll eventually be able to have deep links down to headlines in biographies for dedicated Obsidian vaults right from the main library in Roam.
If my test was done correctly, this lets you have this as an Org link, [[obsidian:Vaultname::Examplefile]], and you get to call this URL: obsidian://open?vault=Vaultname&file=Examplefile.
Now I just have to figure out how to get them to show up in Roam UI. Shame that #Heading didn’t work after the filename but probably for the better since Obsidian goes by named links instead of unique IDs. Change a heading’s name and the link is dead.
It is really cool as it is now though. Roam stays clean with a birds-eye view of everything. When I mention something specific in a note, I can link it right into what’s essentially a souped up show-bible.
For your custom link type to work, I think you’d need to modify code in 3 or 4. For example, URL links directly written in an Org file works, so you would need to convert the link to an URL just before Emacs passes the Org node in plain text (step 3). Or do something with uniorg (step 4).