My expectations of "Unlinked References" must be off

I was really excited to read about “unlinked references”, but have unable to get it to work the way I thought it would.

I have a roam note titled “Leadership”. I have another note titled “Ideal Department” which contains the word “Leadership” in text, but not as a link. When I am in the “Leadership” note if I run org-roam-unlinked-references I expected to see “Ideal Department”, but the list of unlinked references is empty.

What exactly does unlinked references do if not that? I watched the video a while ago, thought that was what it was showing. I assumed there may have been a bug so I let some patches go out. Got caught up in life and tonight tried it again. I am still seeing the same thing.

Thanks,
-Rick

It should work exactly the way you described it. Do you have ripgrep installed? That is what it uses under the hood.

I’ll give it a try again and see if I can reproduce.

Yes, I have ripgrep installed. Using doom-emacs (updated yesterday) on Emacs v 27.1 with org-roam 1.2.1.

This is what I am seeing:

Thanks,
-Rick

It’s working for me:

Is your ripgrep compiled with pcre2 support?

one way to check if it’s working properly is by running the rg-command in the terminal. You can do C-h org-roam-unlinked-references, and navigate to the code. Then, instrument the function with C-u M-x eval-defun, and run org-roam-unlinked-references. After stepping through the process, you can find the value of rg-command, copy it and run it in any terminal.

1 Like