Function: projectile--fd-command-p

projectile--fd-command-p is a byte-compiled function defined in projectile.el.

Signature

(projectile--fd-command-p COMMAND)

Documentation

Return non-nil when COMMAND is one of Projectile's fd recipes.

Recognised by the --strip-cwd-prefix flag Projectile puts in them, the same way projectile--ext-command-line does. COMMAND may be nil, which is how Projectile spells "external-command indexing is disabled".

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
;;; Alien Project Indexing
;;
;; This corresponds to `projectile-indexing-method' being set to hybrid or alien.
;; The only difference between the two methods is that alien doesn't do
;; any post-processing of the files obtained via the external command.
;;
;; Projectile's own ignore rules are still honored under alien (see
;; `projectile-alien-honors-ignores'), but they are pushed down into the
;; external tool as exclusion arguments rather than applied to its output, so
;; alien keeps doing no Lisp-side filtering.  Only the tools that can't express
;; exclusions fall back to filtering in Emacs.

(defun projectile--fd-command-p (command)
  "Return non-nil when COMMAND is one of Projectile's `fd' recipes.
Recognised by the `--strip-cwd-prefix' flag Projectile puts in them, the
same way `projectile--ext-command-line' does.  COMMAND may be nil, which
is how Projectile spells \"external-command indexing is disabled\"."
  (and command (string-match-p "--strip-cwd-prefix\\b" command)))