Function: projectile-session--name-with-parents
projectile-session--name-with-parents is a byte-compiled function
defined in projectile.el.
Signature
(projectile-session--name-with-parents ROOT NAME DEPTH)
Documentation
Return NAME prefixed with ROOT's DEPTH nearest parent directories.
With DEPTH 0 the plain NAME is returned; with DEPTH 1 the immediate parent is prepended (e.g. "shared/foo"), and so on, in path order.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-session--name-with-parents (root name depth)
"Return NAME prefixed with ROOT's DEPTH nearest parent directories.
With DEPTH 0 the plain NAME is returned; with DEPTH 1 the immediate
parent is prepended (e.g. \"shared/foo\"), and so on, in path order."
(let ((prefix (reverse (seq-take (projectile-session--parent-components root)
depth))))
(if prefix
(concat (string-join prefix "/") "/" name)
name)))