Function: projectile--rg-construct-command

projectile--rg-construct-command is a byte-compiled function defined in projectile.el.

Signature

(projectile--rg-construct-command SEARCH-TERM &optional FILE-EXT)

Documentation

Construct Rg option to search files by the extension FILE-EXT.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile--rg-construct-command (search-term &optional file-ext)
  "Construct Rg option to search files by the extension FILE-EXT."
  (if (stringp file-ext)
      (concat (alist-get 'rg projectile-files-with-string-commands)
              "-g '"
              file-ext
              "' "
              search-term)
    (concat (alist-get 'rg projectile-files-with-string-commands)
            search-term)))