Function: treemacs-find-visible-node

treemacs-find-visible-node is a byte-compiled function defined in treemacs-core-utils.el.

Signature

(treemacs-find-visible-node PATH)

Documentation

Find position of node at PATH.

Unlike treemacs-find-node this will not expand other nodes in the view, but only look among those currently visible. The result however is the same: either a marker pointing to the found node or nil.

Unlike treemacs-find-node, this function does not go to the node.

PATH: Node Path

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(defun treemacs-find-visible-node (path)
  "Find position of node at PATH.
Unlike `treemacs-find-node' this will not expand other nodes in the view, but
only look among those currently visible.  The result however is the same: either
a marker pointing to the found node or nil.

Unlike `treemacs-find-node', this function does not go to the node.

PATH: Node Path"
  (-when-let (dom-node (treemacs-is-path-visible? path))
    (or (treemacs-dom-node->position dom-node)
        (save-excursion
          (treemacs-find-node path)))))