Remove the_platinum_searcher support
I'm reducing the scope of our project search so we can eventually focus on ripgrep. By specializing I can extend Doom's features for project searching.
This commit is contained in:
parent
7654764713
commit
6ba7c97501
9 changed files with 9 additions and 65 deletions
|
@ -55,12 +55,6 @@ workspace."
|
|||
(when all-files-p "-z -uu")
|
||||
(unless recursive-p "--maxdepth 1")))
|
||||
|
||||
(defun +helm-pt-search-args (all-files-p recursive-p)
|
||||
(list "pt --nocolor --nogroup -e"
|
||||
"-S"
|
||||
(if all-files-p "-z -a")
|
||||
(unless recursive-p "--depth 1")))
|
||||
|
||||
;;
|
||||
(defun +helm--grep-source ()
|
||||
(require 'helm-projectile)
|
||||
|
@ -133,7 +127,7 @@ order.
|
|||
(and (or (executable-find "grep")
|
||||
(executable-find "git"))
|
||||
'grep)
|
||||
(user-error "No search engine specified (is ag, rg, pt or git installed?)")))
|
||||
(user-error "No search engine specified (is ag, rg, or git installed?)")))
|
||||
(query (or query
|
||||
(when (use-region-p)
|
||||
(let ((beg (or (bound-and-true-p evil-visual-beginning) (region-beginning)))
|
||||
|
@ -152,7 +146,6 @@ order.
|
|||
(pcase engine
|
||||
(`ag (+helm-ag-search-args all-files recursive))
|
||||
(`rg (+helm-rg-search-args all-files recursive))
|
||||
(`pt (+helm-pt-search-args all-files recursive))
|
||||
('grep (+helm--grep-search directory query prompt all-files recursive)
|
||||
(cl-return t))))
|
||||
(helm-ag-base-command (string-join command " ")))
|
||||
|
@ -208,8 +201,6 @@ ARG (universal argument), include all files, even hidden or compressed ones."
|
|||
;;;###autoload (autoload '+helm/rg-from-cwd "completion/helm/autoload/helm" nil t)
|
||||
;;;###autoload (autoload '+helm/ag "completion/helm/autoload/helm" nil t)
|
||||
;;;###autoload (autoload '+helm/ag-from-cwd "completion/helm/autoload/helm" nil t)
|
||||
;;;###autoload (autoload '+helm/pt "completion/helm/autoload/helm" nil t)
|
||||
;;;###autoload (autoload '+helm/pt-from-cwd "completion/helm/autoload/helm" nil t)
|
||||
;;;###autoload (autoload '+helm/grep "completion/helm/autoload/helm" nil t)
|
||||
;;;###autoload (autoload '+helm/grep-from-cwd "completion/helm/autoload/helm" nil t)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue