Searching Org-roam files
Org-roam is “A plain-text personal knowledge management system” using Emacs and Org-mode and I put nearly all my notes in there. While it’s easy to find notes in org-roam based on filename, there’s no obvious way to search the contents of notes. Weird, right?
I could use the default projectile search, but my org-roam files live within my main ~/org directory, so the results are littered with all my other org documents. I’d prefer to only search in ~/org/roam
I use a simple lisp function to help with this. It uses consult-ripgrep:
I added a keybinding for it to my other org-roam bindings:
Now, with a quick C-s n s I can search my org-roam files using the blazingly fast ripgrep.
If there’s a better way to do this, I’m all ears.