emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra 489bc57 284/395: counsel.el (counsel-rg-base-


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 489bc57 284/395: counsel.el (counsel-rg-base-command): Make the default a list
Date: Thu, 25 Feb 2021 08:32:21 -0500 (EST)

branch: externals/ivy-hydra
commit 489bc57344a0cca76646cb8d4f856c2908e84d8b
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]