Function: treemacs-collect-child-nodes

treemacs-collect-child-nodes is a byte-compiled function defined in treemacs-core-utils.el.

Signature

(treemacs-collect-child-nodes PARENT-BTN)

Documentation

Get all buttons exactly one level deeper than PARENT-BTN.

The child buttons are returned in the same order as they appear in the treemacs buffer.

Aliases

treemacs--get-children-of (obsolete since v2.7)

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(defun treemacs-collect-child-nodes (parent-btn)
  "Get all buttons exactly one level deeper than PARENT-BTN.
The child buttons are returned in the same order as they appear in the treemacs
buffer."
  (let (ret)
    (treemacs-first-child-node-where parent-btn
      (push child-btn ret)
      nil)
    (nreverse ret)))