Find orphan notes

Could we have an easy way to find notes that are not linked and do not link to other notes?

22 Likes

When I create a note without links I add in a #no-links tag. Then, with CTRL/Cmd+Shift+F you type #no-links in the search box and voilà, you have your list of orphan notes.

1 Like

This is a good work around, but if you later link to that note you would then need to manually remove the tag right? So it would be good if this was implemented as a built in feature

2 Likes

Another work around is graph view. A node with no edges is an ‘orphan’.

2 Likes

@robotsheepboy: True. My way is based on my previous apps that did not show backlinks. @lukasf’s suggestion is best with Obs.

@lukasf My way is based on my previous apps that did not show backlinks. Your suggestion is best with Obsidian.

Hopefully this will be solved when filtering options are added to the Search Module. Filtering should definitely accommodate no-tags and/or no-internal-links as options.

4 Likes

I would love a plugin like the “random note” one, or in search, showing me “orphan” notes, ie. notes that haven’t been linked to. This way, I would not keep orphan notes.

2 Likes

I have been able to find orphans via the graph view. Zooming out shows them outside the clusters and off to themselves.

5 Likes

Thanks Mike! That’s also what I currently do, it works fairly well.

I still believe that a “random orphan note” button would be nice to avoid procrastinating for 10 minutes looking at all the pretty nodes like I usually do :slight_smile:

4 Likes

Someone posted a solution here:

And TIL you can star a search

3 Likes

I tried just looking for notes without double square left brackets and it worked like a charm.

Here is the search string I used. Great tip, thanks @argentum!
-/\[\[

3 Likes

Just to be clear, a file without any Obsidian links in the body doesn’t qualify it as an Orphan.

Orphans are files that also have the condition where no other file links to them. They appear as solo dots in the Graph View. No links AND no backlinks

I’m surprised that there still isn’t a way to query orphans. Especially since the capability is already built into Obsidian, as demonstrated by the Graph View.

If I missed that feature addition, please enlighten me! :grinning_face_with_smiling_eyes:

Graph view is nice, but so random and unwieldy in a large vault. We need a search query that provides a sorted list

'''query
is-orphan:
'''
1 Like

Using the Dataview plugin

```dataview
list
from ""
where length(file.inlinks) =0 and length(file.outlinks) = 0
```

This does have some shortcomings as I (possibly) found a Dataview bug which makes some linked mentions not appear for some files :thinking:

2 Likes

This will include untagged too

```dataview
list
from ""
where length(file.inlinks) =0 and length(file.outlinks) = 0 and length(file.tags) = 0
1 Like