Make node heading formatter a custom var

This commit is contained in:
Chris Barrett
2023-03-12 15:09:52 +13:00
parent cccb4af688
commit 8c438886d8
3 changed files with 15 additions and 11 deletions

View File

@@ -225,11 +225,10 @@ QUERY is a PRCE regexp string that will be passed to ripgrep."
(pcase-dolist (`(,_file . ,group) (seq-group-by #'org-roam-node-file nodes))
(when-let* ((top-node (-max-by (-on #'< #'org-roam-node-level)
group) )
(node-id (org-roam-node-id top-node))
(heading (org-link-display-format (org-roam-node-title top-node))))
(node-id (org-roam-node-id top-node)))
(magit-insert-section section (org-roam-node-section node-id t)
(magit-insert-heading
(concat (propertize heading 'font-lock-face 'magit-section-heading)
(concat (funcall org-roam-review-title-formatter top-node)
" "
(when-let* ((mat (org-roam-review-node-maturity top-node)))
(alist-get mat org-roam-review-maturity-emoji-alist nil nil #'equal))))