Function: projectile-complementary-dir
projectile-complementary-dir is a byte-compiled function defined in
projectile.el.
Signature
(projectile-complementary-dir DIR-PATH STRING REPLACEMENT)
Documentation
Return the "complementary" directory of DIR-PATH.
Replace STRING in DIR-PATH with REPLACEMENT.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-complementary-dir (dir-path string replacement)
"Return the \"complementary\" directory of DIR-PATH.
Replace STRING in DIR-PATH with REPLACEMENT."
(let* ((project-root (projectile-project-root))
(relative-dir (file-name-directory (file-relative-name dir-path project-root))))
(projectile-expand-root
(string-replace string replacement relative-dir))))