# How to find all files/headings that are linked to a selection of files?

**URL:** <https://org-roam.discourse.group/t/how-to-find-all-files-headings-that-are-linked-to-a-selection-of-files/1575>\
**Category:** How To\
**Created:** [May 11, 2021, 8:35am UTC](https://org-roam.discourse.group/t/how-to-find-all-files-headings-that-are-linked-to-a-selection-of-files/1575 "2021-05-11T08:35:58Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![KirillR](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@KirillR](https://org-roam.discourse.group/u/KirillR)\
**Post date:** [July 9, 2021, 7:25am UTC](https://org-roam.discourse.group/t/how-to-find-all-files-headings-that-are-linked-to-a-selection-of-files/1575/8 "2021-07-09T07:25:47Z")

</div>

This feature would be amazing!

Linking [Designing a query language](https://org-roam.discourse.group/t/designing-a-query-language/1075) due to similarity.

I’m using tags + [org-ql](https://github.com/alphapapa/org-ql) extensively in my workflows. If I could filter nodes by where they are referenced (or/and by what they reference), I’d ditch the tags and use that “graph lookup”. Including most or all of my org-agenda queries.

* * *

Is there any kind of code design ideas related to that? I’m a horrible Emacs Lisp programmer, but I’m excited to at least make some dirty experiments. I’m pretty fluent with SQL though.

@zaeph let us know if it’s something you guys discussed or maybe played with.

---

_[View the full topic](https://org-roam.discourse.group/t/how-to-find-all-files-headings-that-are-linked-to-a-selection-of-files/1575)._
