Using consult-ripgrep with org-roam for searching and linking notes

Using consult-ripgrep with org-roam for searching notes shows a neat way of using consult-ripgrep for full-text-search.

I am wondering if the same approach can be extended to insert at point a link to the note identified with bms/org-roam-rg-search? I have the impression that embark could to be an ideal candidate to achieve that.

The workflow in my mind is:

  1. call bms/org-roam-rg-search at point
  2. find target note
  3. embark-act
  4. insert link to target-note at point

Alas, my Emacs-fu is not strong enough…

1 Like