reddit / emacs

ivy/ivy-rich/counsel: +Filetags of org-roam in search results

wWA5RnA4n2P3w2WvfHq · 2022-02-15 14:48
In the past when I searched for org-roam nodes via `C-c n f` I could saw the `+FILETAGS` (e.g. `#MyProjects`) in the right column of the search results. ​ [Example with two entries having a #Bib tag.](https://preview.redd.it/9is2c77hn0i81.png?width=746&format=png&auto=webp&s=90722c5ddd20eca7298ffd635a2960954ef981ed) I am not sure which component is responsible for such search results. Is it `ivy`, `ivy-rich` or `counsel`. I am using all of them in my `init.el`. After an update of all packages via `M-x list-packages` \+ `U` \+ `x` the tag column is gone. In which package should I look into to find the correct setting/variable or open a ticket for it.
[deleted] · 2022-02-15 15:56
[deleted]
XCapitan_1 · 2022-02-15 16:14
There was [a breaking change](https://github.com/org-roam/org-roam/commit/6f5d65abd9e707b3fdb10092a9fef3b739e143dd) in \`org-roam\` a few weeks ago that removed tag display as a default option. You can do ``` (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag))) ``` To return it.
where_Is_My_Towel · 2022-02-15 21:27
This is great and works for me! My elisp is pretty weak, I'd like to align the tags for all my notes, but I don't understand enough about how strings can be manipulated to make it work. ​ Is there a way I could do this naively, like 1. Get title length 2. Print (40 spaces - the\_title\_length) 3. Print the tags, now guaranteed to start at line position 40 for titles shorter than 40
XCapitan_1 · 2022-02-16 07:55
`org-roam` reinvents a few wheels here. I think you can do ``` (setq org-roam-node-display-template (concat "${title:40} " (propertize "${tags:*}" 'face 'org-tag))) ``` to get what you want.