From cbc7c2aaf08b661efb4363701c37de8020a92291 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 20 Oct 2019 10:40:07 -0400 Subject: [PATCH] completion/ivy: remove -S switch If ivy-case-fold-search == 'auto, counsel-{ag,rg} does this for us. --- modules/completion/ivy/autoload/ivy.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/completion/ivy/autoload/ivy.el b/modules/completion/ivy/autoload/ivy.el index 367b45bbb..95708acd7 100644 --- a/modules/completion/ivy/autoload/ivy.el +++ b/modules/completion/ivy/autoload/ivy.el @@ -399,11 +399,11 @@ order. (counsel-projectile-grep)) (counsel-projectile-grep))))) (`ag - (let ((args (concat " -S" (if all-files " -a") + (let ((args (concat (if all-files " -a") (unless recursive " --depth 1")))) (counsel-ag query directory args (format prompt args)))) (`rg - (let ((args (concat " -S" (if all-files " -uu") + (let ((args (concat (if all-files " -uu") (unless recursive " --maxdepth 1")))) (counsel-rg query directory args (format prompt args)))) (_ (error "No search engine specified"))))))