From 07ba798d76a512451a45266f1e29c052c0f772f2 Mon Sep 17 00:00:00 2001 From: Yiming Chen Date: Sat, 5 Aug 2017 17:17:19 +0800 Subject: [PATCH] fix rg ignore option in non git projects - Fix #46 - according to rg's manual, files for `--ignore-file FILE ...` should be matched relative to the current working directory - while `--glob` can accept files that does not exist in current project (Thanks to @chaoyi) --- counsel-projectile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/counsel-projectile.el b/counsel-projectile.el index 30b4f37..cd1ae43 100644 --- a/counsel-projectile.el +++ b/counsel-projectile.el @@ -254,7 +254,7 @@ BUFFER may be a string or nil." (options (concat options " " (mapconcat (lambda (i) - (concat "--ignore-file " (shell-quote-argument i))) + (concat "--glob " (shell-quote-argument (concat "!" i)))) ignored " ")))) (counsel-rg nil