Function: treemacs--follow-tag-at-point
treemacs--follow-tag-at-point is an interactive and byte-compiled
function defined in treemacs-tag-follow-mode.el.
Signature
(treemacs--follow-tag-at-point)
Documentation
Follow the tag at point in the treemacs view.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-tag-follow-mode.el
(defun treemacs--follow-tag-at-point ()
"Follow the tag at point in the treemacs view."
(interactive)
(let* ((treemacs-window (treemacs-get-local-window))
(buffer (current-buffer))
(buffer-file (when buffer (buffer-file-name)))
(project (treemacs--find-project-for-buffer)))
(when (and treemacs-window buffer-file project)
(condition-case e
(-when-let (index (or treemacs--imenu-cache
(treemacs--flatten&sort-imenu-index)))
(unless (eq index 'unsupported)
(unless (buffer-modified-p)
(setq-local treemacs--imenu-cache (copy-sequence index)))
(treemacs--do-follow-tag index treemacs-window buffer-file project)))
(imenu-unavailable (ignore e))
(error (treemacs-log-err "Encountered error while following tag at point: %s" e))))))