Function: projectile--basename-key
projectile--basename-key is a byte-compiled function defined in
projectile.el.
Signature
(projectile--basename-key REL-PATH SUFFIX)
Documentation
Return REL-PATH's basename with SUFFIX removed, ignoring its directory.
For the frameworks that name a resource's files after it but scatter them across directories, so the directory can't be part of the key.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--basename-key (rel-path suffix)
"Return REL-PATH\\='s basename with SUFFIX removed, ignoring its directory.
For the frameworks that name a resource\\='s files after it but scatter
them across directories, so the directory can\\='t be part of the key."
(let ((name (file-name-nondirectory rel-path)))
(when (string-suffix-p suffix name)
(substring name 0 (- (length suffix))))))