completion/ivy: remove -S switch

If ivy-case-fold-search == 'auto, counsel-{ag,rg} does this for us.
This commit is contained in:
Henrik Lissner 2019-10-20 10:40:07 -04:00
parent 182b8a3ba9
commit cbc7c2aaf0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -399,11 +399,11 @@ order.
(counsel-projectile-grep)) (counsel-projectile-grep))
(counsel-projectile-grep))))) (counsel-projectile-grep)))))
(`ag (`ag
(let ((args (concat " -S" (if all-files " -a") (let ((args (concat (if all-files " -a")
(unless recursive " --depth 1")))) (unless recursive " --depth 1"))))
(counsel-ag query directory args (format prompt args)))) (counsel-ag query directory args (format prompt args))))
(`rg (`rg
(let ((args (concat " -S" (if all-files " -uu") (let ((args (concat (if all-files " -uu")
(unless recursive " --maxdepth 1")))) (unless recursive " --maxdepth 1"))))
(counsel-rg query directory args (format prompt args)))) (counsel-rg query directory args (format prompt args))))
(_ (error "No search engine specified")))))) (_ (error "No search engine specified"))))))