diff --git a/modules/completion/ivy/autoload/ivy.el b/modules/completion/ivy/autoload/ivy.el index c33c1ec54..eef638f21 100644 --- a/modules/completion/ivy/autoload/ivy.el +++ b/modules/completion/ivy/autoload/ivy.el @@ -251,8 +251,7 @@ search current file. See `+ivy-task-tags' to customize what this searches for." (counsel-projectile-grep args)) (counsel-projectile-grep args)))) ('ag - (let ((args (concat " -S" ; smart-case - (if all-files-p " -a") + (let ((args (concat (if all-files-p " -a") (unless recursion-p " --depth 1")))) (counsel-ag query directory args (format prompt args)))) ('rg @@ -262,7 +261,6 @@ search current file. See `+ivy-task-tags' to customize what this searches for." ('pt (let ((counsel-pt-base-command (concat counsel-pt-base-command - " -S" ; smart-case (if all-files-p " -U") (unless recursion-p " --depth=1"))) (default-directory directory)) diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index e0f123bbc..cf79298da 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -93,7 +93,10 @@ immediately runs it on the current candidate (ending the ivy session)." :config (set! :popup "^\\*ivy-occur" '((size . 0.35)) '((transient . 0) (quit))) - (setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)") + (setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)" + counsel-rg-base-command "rg -zS --no-heading --line-number --color never %s ." + counsel-ag-base-command "ag -zS --nocolor --nogroup %s" + counsel-pt-base-command "pt -zS --nocolor --nogroup -e %s") ;; Dim recentf entries that are not in the current project. (ivy-set-display-transformer #'counsel-recentf #'+ivy-recentf-transformer)