Function: cider-tree-view-render
cider-tree-view-render is a byte-compiled function defined in
cider-tree-view.el.
Signature
(cider-tree-view-render ROOTS TITLE &optional HEADER-FN)
Documentation
Render ROOTS in the current buffer, which must be in cider-tree-view-mode.
TITLE is shown in the header line; point is left on the first node. HEADER-FN,
when non-nil, is a function of no arguments inserting content above the tree on
every render (e.g. filter controls). Callers are expected to have created and
displayed the buffer (e.g. via cider-popup-buffer) before handing it here.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-tree-view.el
(defun cider-tree-view-render (roots title &optional header-fn)
"Render ROOTS in the current buffer, which must be in `cider-tree-view-mode'.
TITLE is shown in the header line; point is left on the first node. HEADER-FN,
when non-nil, is a function of no arguments inserting content above the tree on
every render (e.g. filter controls). Callers are expected to have created and
displayed the buffer (e.g. via `cider-popup-buffer') before handing it here."
(setq cider-tree-view--roots roots)
(setq-local cider-tree-view--header-fn header-fn)
(setq-local header-line-format
(concat (propertize (format " %s" title) 'face 'bold)
(propertize
" n/p: move TAB: expand RET/.: visit q: quit"
'face 'shadow)))
(cider-tree-view--render)
(goto-char (point-min))
(unless (cider-tree-view-node-at-point)
(ignore-errors (cider-tree-view-next-node))))