# Dynamic tag pane/list

**URL:** https://org-roam.discourse.group/t/dynamic-tag-pane-list/2866
**Category:** How To
**Created:** [November 15, 2022, 10:42am UTC](https://org-roam.discourse.group/t/dynamic-tag-pane-list/2866 "2022-11-15T10:42:59Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Matt](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Matt](https://org-roam.discourse.group/u/Matt)
#### Post date: [November 15, 2022, 10:42am UTC](https://org-roam.discourse.group/t/dynamic-tag-pane-list/2866/1 "2022-11-15T10:42:59Z")

</div>

Hello,

I recently moved from Logseq and trying to emulate it’s beloved filtering GUI in org-roam. When I’m filtering for a tag, I want to be able to know beforehand what additionnal tags I can go for using AND operators, a list or tag pane with remaining tag possibilities instead of aiming in the dark and get 0 results back. Logseq’s dynamic tag pane prunes your remaining options for AND search so you’re narrowing down the results intelligently as you’re including additionnal tags. How do I go about doing that? Is there a workaround?

---

<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: [November 16, 2022, 12:49pm UTC](https://org-roam.discourse.group/t/dynamic-tag-pane-list/2866/2 "2022-11-16T12:49:17Z")

</div>

Simple customizing for `org-roam-node-find` might help.

You can do something like this (refer to [README](https://github.com/org-roam/org-roam#configuration)):

```auto
  (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag)))

```

When you call `org-roam-node-find`, tags should appear as part of each candidate. By default, each tag should have a prefix of “#” (customizable via `org-roam-node-template-prefixes`). So if you type “#firsttag” and then “#secondtag”, the candidates should be incrementally narrowed by the matching tags.

Your experience might depend on the “completion framework” and `completion-styles` that you have chosen to use. For the completion framework, Org-roam would probably work best if you are using one that does vertical display (e.g. Ivy, Vertico, Selectrum, etc.). For `completion-styles`, I suggest something like [Orderless](https://github.com/oantolin/orderless) as it lets you match what you type with candidates in any order (otherwise, you might need to type the tags exactly in the order that appears in the candidates list).

---

<div class="post-metadata">

### Author: ![AuroraDraco](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AuroraDraco](https://org-roam.discourse.group/u/AuroraDraco)
#### Post date: [November 17, 2022, 9:51am UTC](https://org-roam.discourse.group/t/dynamic-tag-pane-list/2866/3 "2022-11-17T09:51:31Z")

</div>

I think @nobiot’s answer pretty much covers what you asked.

However, I had a discussion with someone over on r/emacs about implementing part of logseq’s tagging functionality in org roam and so I have a function which you might find useful. You can find it in this link.

> <https://github.com/Vidianos-Giannitsis/Dotfiles/blob/master/emacs/.emacs.d/libs/zettelkasten.org#logseq-like-tagging-functionality>

---

<div class="post-metadata">

### Author: ![Matt](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Matt](https://org-roam.discourse.group/u/Matt)
#### Post date: [November 18, 2022, 8:50am UTC](https://org-roam.discourse.group/t/dynamic-tag-pane-list/2866/4 "2022-11-18T08:50:23Z")

</div>

Thank you so much! I’ll try it out ASAP!

---

<div class="post-metadata">

### Author: ![Matt](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Matt](https://org-roam.discourse.group/u/Matt)
#### Post date: [November 18, 2022, 8:51am UTC](https://org-roam.discourse.group/t/dynamic-tag-pane-list/2866/5 "2022-11-18T08:51:09Z")

</div>

Thank you! Looks very useful indeed.

---

<div class="post-metadata">

### Author: ![AuroraDraco](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AuroraDraco](https://org-roam.discourse.group/u/AuroraDraco)
#### Post date: [November 18, 2022, 10:19am UTC](https://org-roam.discourse.group/t/dynamic-tag-pane-list/2866/6 "2022-11-18T10:19:41Z")

</div>

Happy to hear it works well for you.
