Function: treemacs--tokenize-path

treemacs--tokenize-path is a byte-compiled function defined in treemacs-core-utils.el.

Signature

(treemacs--tokenize-path PATH EXCLUDE-PREFIX)

Documentation

Get the PATH's single elements, excluding EXCLUDE-PREFIX.

For example the input /A/B/C/D/E + /A/B will return [C D E].

PATH: File Path EXCLUDE-PREFIX: File Path

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(define-inline treemacs--tokenize-path (path exclude-prefix)
  "Get the PATH's single elements, excluding EXCLUDE-PREFIX.
For example the input /A/B/C/D/E + /A/B will return [C D E].

PATH: File Path
EXCLUDE-PREFIX: File Path"
  (declare (pure t) (side-effect-free t))
  (inline-letevals (path exclude-prefix)
    (inline-quote
     (treemacs-split-path (substring ,path (length ,exclude-prefix))))))