Function: org-roam--h1-count
org-roam--h1-count is a byte-compiled function defined in
org-roam-node.el.
Signature
(org-roam--h1-count)
Documentation
Count level-1 headings in the current file.
Source Code
;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-node.el
(defun org-roam--h1-count ()
"Count level-1 headings in the current file."
(let ((h1-count 0))
(org-with-wide-buffer
(org-map-region (lambda ()
(if (= (org-current-level) 1)
(cl-incf h1-count)))
(point-min) (point-max))
h1-count)))