org-roam / org-roam-ui

A graphical frontend for exploring your org-roam Zettelkasten
GNU General Public License v3.0
1.95k stars 108 forks source link

Filter #71

Open agzam opened 3 years ago

agzam commented 3 years ago

How difficult would it be to add the ability to filter certain nodes based on a substring entered in a text field?

Moreover, what if that text field understood regexes? Like for example the user types something like: "Biology|Unread|Aerodynamics/r" - /r is to distinguish between vanilla and regex strings, and the UI shows all the nodes related to those topics?

tefkah commented 3 years ago

It wouldn't be too difficult, but we want to think these filters through a bit more carefully before adding too many more of them. At the moment they are all hardcoded, but ideally we would allow for any kind of filtering (as long as org-roam allows it). Think of creation date, tags, number of links etc. Even more ideally we would have some kind of org-roam-ql which allows you to enter any kind of query, such as "show me only nodes which have this tag and are connected to a node with this other tag".

Eventually we would like to have such querying, so for the time being we probably won't add a lot of new filters, unless a lot of people request them.

agzam commented 3 years ago

I see. I am personally very excited about the idea of showing nodes that are at the intersection of different topics. A graphical backlink buffer based on multiple points, so to speak.