Function: consult--project-name

consult--project-name is a byte-compiled function defined in consult.el.

Signature

(consult--project-name DIR)

Documentation

Return the project name for DIR.

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/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))