tweak(org-roam): remove unlinked references from buffer

This never really worked all that well anyways, so it's not worth
keeping around. I can just implement my own version if I want this
feature.
This commit is contained in:
Kiana Sheibani 2025-04-03 06:21:43 -04:00
parent 848c27d1d0
commit 1b56e781c2
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -3535,21 +3535,11 @@ By default, Roam generates file names containing both a timestamp and the node t
*** Roam Buffer *** Roam Buffer
The unlinked references section is turned off by default for performance reasons, but sometimes I want to see that information when writing notes. I also don't want it to show up for every node, because some of my nodes have quite a large reference list. Let's add a predicate to control when unlinked references are shown.
#+begin_src emacs-lisp
(defadvice! ~/org-roam-unlinked-references-p (node)
"A predicate to control when unlinked references are shown in the `org-roam' buffer."
:before-until #'org-roam-unlinked-references-section
(assoc "ROAM_NO_UNLINKED" (org-roam-node-properties node)))
#+end_src
#+begin_src emacs-lisp #+begin_src emacs-lisp
(after! org-roam (after! org-roam
(setq org-roam-mode-sections (setq org-roam-mode-sections
'((org-roam-backlinks-section :unique t) '((org-roam-backlinks-section :unique t)
org-roam-reflinks-section org-roam-reflinks-section)))
org-roam-unlinked-references-section)))
#+end_src #+end_src
*** Roam Links *** Roam Links