Function: projectile-search--header-string
projectile-search--header-string is a byte-compiled function defined
in projectile.el.
Signature
(projectile-search--header-string)
Documentation
Return the propertized status header for the search results buffer.
Shows the term, the match and file counts, the mode flags
(regexp/literal and case), and a note when the list has been filtered.
Carries no projectile-replace-match property, so match navigation
skips it.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-search--header-string ()
"Return the propertized status header for the search results buffer.
Shows the term, the match and file counts, the mode flags
\(regexp/literal and case), and a note when the list has been filtered.
Carries no `projectile-replace-match' property, so match navigation
skips it."
(let* ((matches projectile-replace--matches)
(nmatches (length matches))
(seen (make-hash-table :test 'equal))
nfiles flags)
(dolist (m matches)
(puthash (projectile-replace--match-file m) t seen))
(setq nfiles (hash-table-count seen)
flags (concat
(if projectile-replace--literal "[literal]" "[regexp]")
" "
(if projectile-replace--case-fold
"[ignore-case]" "[case-sensitive]")
(if projectile-replace--word " [word]" "")
(if projectile-replace--filtered " filtered" "")
(projectile-replace--scanning-note nmatches)))
(propertize
(format "Search %S\n%d match%s in %d file%s %s\n"
projectile-replace--term
nmatches (if (= nmatches 1) "" "es")
nfiles (if (= nfiles 1) "" "s")
flags)
'face 'projectile-replace-header)))