File: treemacs-tag-follow-mode.el.html
Minor mode to follow the tag at point in the treemacs view on an idle timer
Finding the current tag is a fairly involved process:
* Grab current buffer's imenu output
* Flatten the list to create full tag paths
* Sort according to tag position
* Beware of edge cases: org-mode headlines are containers, but also hold a position, hidden as a text property and
semantic-mode parsed buffers use overlays instead of markers
* Find the last tag whose position begins before point
* Jump to that tag path
* No jump when there's no buffer file, or no imenu, or buffer file is not seen in treemacs etc.
NOTE: This module is lazy-loaded.
Defined variables (5)
treemacs--imenu-cache | |
treemacs--previously-followed-tag-position | |
treemacs--tag-follow-timer | |
treemacs-tag-follow-mode | Non-nil if Treemacs-Tag-Follow mode is enabled. |
treemacs-tag-follow-mode-hook |