Function: treemacs-apply-single-annotation
treemacs-apply-single-annotation is a byte-compiled function defined
in treemacs-annotations.el.
Signature
(treemacs-apply-single-annotation PATH)
Documentation
Apply annotations for a single node at given PATH in all treemacs buffers.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-annotations.el
(defun treemacs-apply-single-annotation (path)
"Apply annotations for a single node at given PATH in all treemacs buffers."
(treemacs-run-in-all-derived-buffers
(-when-let (btn (treemacs-find-node path))
(treemacs-with-writable-buffer
(save-excursion
(treemacs--do-apply-annotation
btn
(-when-let (git-cache
(->> path
(treemacs--parent-dir)
(ht-get treemacs--git-cache)))
(ht-get git-cache path))))))))