(core): add org-roam-node-category (#2300)

This commit is contained in:
Jethro Kuan
2022-12-26 18:19:51 -08:00
committed by GitHub
parent 45a6863e07
commit 938c602faa

View File

@ -210,6 +210,10 @@ This path is relative to `org-roam-directory'."
(_ (_
(org-roam-node-title node)))) (org-roam-node-title node))))
(cl-defmethod org-roam-node-category ((node org-roam-node))
"Return the category for NODE."
(cdr (assoc-string "CATEGORY" (org-roam-node-properties node))))
;;; Nodes ;;; Nodes
;;;; Getters ;;;; Getters
(defun org-roam-node-at-point (&optional assert) (defun org-roam-node-at-point (&optional assert)