Function: projectile--report-hints

projectile--report-hints is a byte-compiled function defined in projectile.el.

Signature

(projectile--report-hints BINDINGS)

Documentation

Insert a dimmed footer line describing BINDINGS.

BINDINGS is an alist of (COMMAND . DESCRIPTION). The key is looked up with substitute-command-keys, so the hint tells the truth even when the buffer's map has been rebound - the trick Flycheck's verify buffer uses.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--report-hints (bindings)
  "Insert a dimmed footer line describing BINDINGS.
BINDINGS is an alist of (COMMAND . DESCRIPTION).  The key is looked up
with `substitute-command-keys', so the hint tells the truth even when the
buffer\\='s map has been rebound - the trick Flycheck\\='s verify buffer uses."
  (insert "\n"
          (projectile--report-face
           (mapconcat (lambda (binding)
                        (format "%s %s"
                                (substitute-command-keys
                                 (format "\\[%s]" (car binding)))
                                (cdr binding)))
                      bindings "   ")
           'projectile-report-hint)
          "\n"))