I am getting into trouble to work with tags in org-roam. I would like to reproduce what I see in the video of System Crafter : https://youtu.be/YxgA5z2R08I at 21’19’’ (see the screenshot below). As you can see, the author uses in his .org file a line with #+filetags: Project, and when he is looking for a note (calling org-roam-node-find) we can see (bottom right) that the tag “Project” appears, which would be a very nice feature for browsing my notes by topic instead of by title.
But I do not manage to reproduce this behavior although I copied the part of the configuration file of the author related to org-roam, and it seems this feature is automatically “included” with org-roam, so the issue might not come from org-roam … Does anybody know how to achieve this?
It’s honestly not too bad, and in my opinion a much better experience for completions.
If you’re using use-package the installation is pretty simple as shown on the Vertico docs. Couple this with Orderless and the completions are pretty quick and intuitive.
I think your question gave the solution. The variable org-roam-node-display-template can be customized in order to get the tags displayed. By searching for “org-roam-node-display-template” in the Org-roam User Manual we find an example that explains how to achieve it (paragraph 5.5).
Thus, I customize the variable in my init.el :
(use-package org-roam
;; [stuffs ...]
:custom
;; [stuffs ...]
(org-roam-node-display-template ; This is for displaying titles AND tags when calling org-roam-node-find
(concat "${title:*} "
(propertize "${tags:50}" 'face 'org-tag)))
;; [stuffs ...]
)
You can display a lot of the attributes of the node. I use todo, tags, title, and filename. I use consult-org and I can quickly search using incremental search. I highly recommend to use consult-org