Treat +ivy/project-search & +default/project-search as counsel-rg

This gives the former commands access to any actions (on C-o) or counsel
configuration meant for counsel-rg.
This commit is contained in:
Henrik Lissner 2019-12-17 23:31:10 -05:00
parent defbed9ac1
commit e6de13b4c9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 7 additions and 3 deletions

View file

@ -252,7 +252,7 @@ The point of this is to avoid Emacs locking up indexing massive file trees."
(unless (executable-find "rg")
(user-error "Couldn't find ripgrep in your PATH"))
(require 'counsel)
(let* ((ivy-more-chars-alist '((t . 1)))
(let* ((this-command 'counsel-rg)
(project-root (or (doom-project-root) default-directory))
(directory (or in project-root))
(args (concat (if all-files " -uu")