Function: treemacs-goto-node
treemacs-goto-node is a byte-compiled function defined in
treemacs-core-utils.el.
Signature
(treemacs-goto-node PATH &optional PROJECT IGNORE-FILE-EXISTS)
Documentation
Move point to button identified by PATH under PROJECT in the current buffer.
Falls under the same constraints as treemacs-find-node, but will actually move
point. Will do nothing if file at PATH does not exist, unless
IGNORE-FILE-EXISTS is non-nil.
PATH: Filepath | Node Path PROJECT Project Struct IGNORE-FILE-EXISTS Boolean
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(defun treemacs-goto-node (path &optional project ignore-file-exists)
"Move point to button identified by PATH under PROJECT in the current buffer.
Falls under the same constraints as `treemacs-find-node', but will actually move
point. Will do nothing if file at PATH does not exist, unless
IGNORE-FILE-EXISTS is non-nil.
PATH: Filepath | Node Path
PROJECT Project Struct
IGNORE-FILE-EXISTS Boolean"
(treemacs-with-path path
:file-action (when (or ignore-file-exists (file-exists-p path))
(treemacs-goto-file-node path project))
:extension-action (treemacs-goto-extension-node path)))