Function: consult--project-name
consult--project-name is a natively compiled function defined in
consult.el.
Signature
(consult--project-name DIR)
Documentation
Return the project name for DIR.
Source Code
;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--project-name (dir)
"Return the project name for DIR."
(if (string-match "/\\([^/]+\\)/\\'" dir)
(propertize (match-string 1 dir) 'help-echo (abbreviate-file-name dir))
dir))