Function: treemacs-apply-annotations

treemacs-apply-annotations is a byte-compiled function defined in treemacs-annotations.el.

Signature

(treemacs-apply-annotations PATH)

Documentation

Apply annotations for all nodes under the given PATH.

PATH: Node Path

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-annotations.el
(defun treemacs-apply-annotations (path)
  "Apply annotations for all nodes under the given PATH.

PATH: Node Path"
  (treemacs-run-in-all-derived-buffers
   (treemacs-with-writable-buffer
    (save-excursion
      (goto-char (treemacs-find-node path))
      (let ((git-info (ht-get treemacs--git-cache path treemacs--empty-table))
            (btn (point)))
        (treemacs--do-apply-annotation
         btn
         (ht-get git-info (treemacs-button-get btn :key)))
        (while (and (setf btn (next-button btn))
                    (/= 0 (treemacs-button-get btn :depth)))
          (-let [parent-path (treemacs-button-get
                              (treemacs-button-get btn :parent)
                              :key)]
            (treemacs--do-apply-annotation
             btn
             (ht-get
              (ht-get treemacs--git-cache parent-path git-info)
              (treemacs-button-get btn :key))))))))))