branch: externals/ivy-hydra
commit 489bc57344a0cca76646cb8d4f856c2908e84d8b
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-rg-base-command): Make the default a list
Re #2552
---
counsel.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/counsel.el b/counsel.el
index 17838ad..cc86770 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3204,13 +3204,16 @@ This uses `counsel-ag' with `counsel-ack-base-command'
replacing
;;** `counsel-rg'
(defcustom counsel-rg-base-command
- (if (memq system-type '(ms-dos windows-nt))
- "rg -M 240 --with-filename --no-heading --line-number --color never %s
--path-separator / ."
- "rg -M 240 --with-filename --no-heading --line-number --color never %s")
+ (split-string
+ (if (memq system-type '(ms-dos windows-nt))
+ "rg -M 240 --with-filename --no-heading --line-number --color never %s
--path-separator / ."
+ "rg -M 240 --with-filename --no-heading --line-number --color never %s"))
"Alternative to `counsel-ag-base-command' using ripgrep.
Note: don't use single quotes for the regex."
- :type 'string)
+ :type '(choice
+ (repeat :tag "List to be used in `process-file'." string)
+ (string :tag "String to be used in `shell-command-to-string'.")))
(defun counsel--rg-targets ()
"Return a list of files to operate on, based on `dired-mode' marks."