Function: projectile-dashboard--field

projectile-dashboard--field is a byte-compiled function defined in projectile.el.

Signature

(projectile-dashboard--field LABEL VALUE &optional FACE)

Documentation

Insert a LABEL/VALUE line into the dashboard.

VALUE is rendered with %s; a nil or empty one reads as "n/a". FACE, when given, is applied to the value.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-dashboard--field (label value &optional face)
  "Insert a LABEL/VALUE line into the dashboard.
VALUE is rendered with `%s'; a nil or empty one reads as \"n/a\".  FACE,
when given, is applied to the value."
  (projectile-dashboard--label label)
  (let ((value (if (or (null value) (equal value "")) "n/a" (format "%s" value))))
    (insert (if face (projectile--report-face value face) value) "\n")))