Variable: treemacs-goto-tag-strategy
treemacs-goto-tag-strategy is a customizable variable defined in
treemacs-customization.el.
Value
refetch-index
Documentation
Indicates how to move to a tag when its buffer is dead.
The tags in the treemacs view store their position as markers (or overlays if semantic mode is on) pointing to a buffer. If that buffer is killed, or has never really been open, as treemacs kills buffer after fetching their tags if they did no exist before, the stored positions become stale, and treemacs needs to use a different method to move to that tag. This variable sets that method.
Its possible values are:
* refetch-index
Call up the file's imenu index again and use its information to jump.
* call-xref
Call xref-find-definitions to find the tag.
* issue-warning
Just issue a warning that the tag's position pointer is invalid.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-customization.el
(defcustom treemacs-goto-tag-strategy 'refetch-index
"Indicates how to move to a tag when its buffer is dead.
The tags in the treemacs view store their position as markers (or overlays if
semantic mode is on) pointing to a buffer. If that buffer is killed, or has
never really been open, as treemacs kills buffer after fetching their tags if
they did no exist before, the stored positions become stale, and treemacs needs
to use a different method to move to that tag. This variable sets that method.
Its possible values are:
* refetch-index
Call up the file's imenu index again and use its information to jump.
* call-xref
Call `xref-find-definitions' to find the tag.
* issue-warning
Just issue a warning that the tag's position pointer is invalid."
:type 'integer
:group 'treemacs)