Function: treemacs--post-process-index
treemacs--post-process-index is a byte-compiled function defined in
treemacs-tags.el.
Signature
(treemacs--post-process-index INDEX INDEX-MODE)
Documentation
Post process a tags INDEX for the major INDEX-MODE the tags were gathered in.
As of now this only decides which (if any) section name the top level leaves should be placed under.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-tags.el
(defun treemacs--post-process-index (index index-mode)
"Post process a tags INDEX for the major INDEX-MODE the tags were gathered in.
As of now this only decides which (if any) section name the top level leaves
should be placed under."
(declare (pure t) (side-effect-free t))
(pcase index-mode
((or 'markdown-mode 'org-mode 'python-mode)
index)
((guard (treemacs--provided-mode-derived-p index-mode 'conf-mode))
(treemacs--partition-imenu-index index "Sections"))
(_
(treemacs--partition-imenu-index index "Functions"))))