# Find all unlinked references in one go

**URL:** <https://org-roam.discourse.group/t/find-all-unlinked-references-in-one-go/2753>\
**Category:** Requests\
**Created:** [September 10, 2022, 1:54pm UTC](https://org-roam.discourse.group/t/find-all-unlinked-references-in-one-go/2753 "2022-09-10T13:54:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cletip](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@Cletip](https://org-roam.discourse.group/u/Cletip)\
**Post date:** [September 10, 2022, 1:54pm UTC](https://org-roam.discourse.group/t/find-all-unlinked-references-in-one-go/2753/1 "2022-09-10T13:54:17Z")

</div>

Hello to all,

My goal is in the title : find all the unlinked references.  
Its purpose is the following: to be able to create the missing links that I could miss.

I thought about a function that can make that : go through each node, open the org-roam buffer, check if there is the corresponding section for unlinked references. If not, go to the next node. If yes, stop at this one.

Could there be another more elegant solution?

Thanks you in advance

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [September 11, 2022, 7:20am UTC](https://org-roam.discourse.group/t/find-all-unlinked-references-in-one-go/2753/2 "2022-09-11T07:20:18Z")

</div>

Org-roam comes with one that uses ripgrep.

---

<div class="post-metadata">

**Author:** ![Cletip](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@Cletip](https://org-roam.discourse.group/u/Cletip)\
**Post date:** [September 17, 2022, 7:11am UTC](https://org-roam.discourse.group/t/find-all-unlinked-references-in-one-go/2753/3 "2022-09-17T07:11:26Z")

</div>

Sorry late reply.  
Hum, so by using ripgrep, I’ll be able to get all the unlinked references out of all my notes?

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [September 17, 2022, 8:04am UTC](https://org-roam.discourse.group/t/find-all-unlinked-references-in-one-go/2753/4 "2022-09-17T08:04:22Z")

</div>

Yes. Works for me in my Ubuntu. Can’t make it work for Windows.

See the [manual](https://www.orgroam.com/manual.html#Configuring-what-is-displayed-in-the-buffer).

> 7.2 Configuring what is displayed in the buffer
> 
> There are currently 3 provided widget types:
> 
> - BacklinksView (preview of) nodes that link to this node
> - Reference LinksNodes that reference this node (see [Refs](https://www.orgroam.com/manual.html#Refs))
> - Unlinked referencesView nodes that contain text that match the nodes title/alias but are not linked

---

<div class="post-metadata">

**Author:** ![Cletip](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@Cletip](https://org-roam.discourse.group/u/Cletip)\
**Post date:** [September 18, 2022, 2:31pm UTC](https://org-roam.discourse.group/t/find-all-unlinked-references-in-one-go/2753/5 "2022-09-18T14:31:15Z")

</div>

Thank you for your reply

I’m sorry, but I don’t think I made myself clear:  
I would like to have all unlinked references of ALL my notes in one place.

From what I understand, the org-roam buffer only shows for one note. I would like to have my unlinked references for all my notes at the same time in one place.

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [September 18, 2022, 3:24pm UTC](https://org-roam.discourse.group/t/find-all-unlinked-references-in-one-go/2753/6 "2022-09-18T15:24:49Z")

</div>

Then like you said in the opening, you can loop through all your nodes. It might take some time to finish executing if you have many notes.
