Function: projectile-register-search-backend

projectile-register-search-backend is a byte-compiled function defined in projectile.el.

Signature

(projectile-register-search-backend NAME &rest PLIST)

Documentation

Register NAME as a projectile-search backend with PLIST properties.

Recognised PLIST keys:
  :description a human-readable string shown in prompts;
  :available a zero-argument predicate returning non-nil when the
                backend can be used (omit for an always-available one);
  :search a function called as (SEARCH-TERM REGEXP) to run the
                search, REGEXP being non-nil when the term is a regular
                expression.
Use this to plug in your own search tool, e.g.:

  (projectile-register-search-backend 'deadgrep
    :description "deadgrep"
    :available (lambda () (require 'deadgrep nil t))
    :search (lambda (term _regexp) (deadgrep term (projectile-acquire-root))))

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-register-search-backend (name &rest plist)
  "Register NAME as a `projectile-search' backend with PLIST properties.
Recognised PLIST keys:
  :description  a human-readable string shown in prompts;
  :available    a zero-argument predicate returning non-nil when the
                backend can be used (omit for an always-available one);
  :search       a function called as (SEARCH-TERM REGEXP) to run the
                search, REGEXP being non-nil when the term is a regular
                expression.
Use this to plug in your own search tool, e.g.:

  (projectile-register-search-backend \\='deadgrep
    :description \"deadgrep\"
    :available (lambda () (require \\='deadgrep nil t))
    :search (lambda (term _regexp) (deadgrep term (projectile-acquire-root))))"
  (apply #'projectile-register-backend 'projectile-search-backends name plist))