Function: projectile-search--rg-fastpath-p

projectile-search--rg-fastpath-p is a byte-compiled function defined in projectile.el.

Signature

(projectile-search--rg-fastpath-p LITERAL &optional RG-PATTERN)

Documentation

Return non-nil when the search reviewer should use the ripgrep fast-path.

True for a LITERAL search, or for a non-literal one that supplied RG-PATTERN (a ripgrep-syntax equivalent of its Emacs regexp), when projectile-search-use-ripgrep is set, rg is available, and we are interactive; batch (noninteractive) keeps the deterministic elisp scan.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-search--rg-fastpath-p (literal &optional rg-pattern)
  "Return non-nil when the search reviewer should use the ripgrep fast-path.
True for a LITERAL search, or for a non-literal one that supplied
RG-PATTERN (a ripgrep-syntax equivalent of its Emacs regexp), when
`projectile-search-use-ripgrep' is set, `rg' is available, and we are
interactive; batch (`noninteractive') keeps the deterministic elisp scan."
  (and projectile-search-use-ripgrep
       (or literal rg-pattern)
       (not noninteractive)
       (projectile-search--rg-executable)
       t))