[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 00a1b02 22/90: counsel-git-grep should quote strings bette
From: |
Oleh Krehel |
Subject: |
[elpa] master 00a1b02 22/90: counsel-git-grep should quote strings better |
Date: |
Tue, 30 Jun 2015 07:28:10 +0000 |
branch: master
commit 00a1b02df0b1c4da6479ea6022568787bd21de6b
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel-git-grep should quote strings better
* counsel.el (counsel-git-grep-function):
(counsel--gg-candidates): Update.
Fixes an errror when the input has a " in it.
---
counsel.el | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/counsel.el b/counsel.el
index 57bad38..d1303ba 100644
--- a/counsel.el
+++ b/counsel.el
@@ -210,7 +210,7 @@
(list ""
(format "%d chars more" (- 3 (length ivy-text)))))
(let* ((default-directory counsel--git-grep-dir)
- (cmd (format "git --no-pager grep --full-name -n --no-color -i -e
\"%s\""
+ (cmd (format "git --no-pager grep --full-name -n --no-color -i -e
%S"
(ivy--regex string t)))
res)
(if (<= counsel--git-grep-count 20000)
@@ -428,7 +428,7 @@ The libraries are offered from `load-path'."
(setq proc (start-process-shell-command
counsel-gg-process
counsel-gg-process
- (format "git --no-pager grep --full-name -n --no-color -i -e
\"%s\" | head -n 200"
+ (format "git --no-pager grep --full-name -n --no-color -i -e
%S | head -n 200"
regex)))
(set-process-sentinel
proc
- [elpa] master 3256d68 07/90: Change the :matcher interface, (continued)
- [elpa] master 3256d68 07/90: Change the :matcher interface, Oleh Krehel, 2015/06/30
- [elpa] master 5f7c787 11/90: counsel.el (counsel-find-file-at-point): New defcustom, Oleh Krehel, 2015/06/30
- [elpa] master efd74b8 10/90: counsel.el (counsel-find-file): Extend `find-file', Oleh Krehel, 2015/06/30
- [elpa] master 8212110 15/90: Handle symbol-at-point better in non-Elisp buffers, Oleh Krehel, 2015/06/30
- [elpa] master fe057eb 14/90: Swiper should preserve column for empty input, Oleh Krehel, 2015/06/30
- [elpa] master 1a193b0 16/90: ivy.el (ivy--done): Set ivy--current, Oleh Krehel, 2015/06/30
- [elpa] master 97abd3c 17/90: ivy.el (ivy-virtual): New defface, Oleh Krehel, 2015/06/30
- [elpa] master 3c8daba 19/90: Fixup compilation warnings, Oleh Krehel, 2015/06/30
- [elpa] master ecb93a6 18/90: Regexp-quote name of candidate buffer to be preselected, Oleh Krehel, 2015/06/30
- [elpa] master 40a938b 21/90: ivy.el (ivy-minibuffer-map): Bind ivy-yank-word to "M-j", Oleh Krehel, 2015/06/30
- [elpa] master 00a1b02 22/90: counsel-git-grep should quote strings better,
Oleh Krehel <=
- [elpa] master 52a083e 13/90: ivy.el (ivy-yank-word): New command, Oleh Krehel, 2015/06/30
- [elpa] master 9ae55b4 12/90: ivy.el (ivy-recentf): New command, Oleh Krehel, 2015/06/30
- [elpa] master ed60d31 20/90: Make counsel-git-grep fully async, Oleh Krehel, 2015/06/30
- [elpa] master bef708c 23/90: ivy.el (ivy--switch-buffer-action): Add work-around, Oleh Krehel, 2015/06/30
- [elpa] master 77e7c8f 24/90: Account for minibuffer-depth-indication-mode, Oleh Krehel, 2015/06/30
- [elpa] master 607d943 25/90: Add a hack for kill-buffer and invisible buffer, Oleh Krehel, 2015/06/30
- [elpa] master 3699897 26/90: counsel.el (counsel-symbol-at-point): Improve, Oleh Krehel, 2015/06/30
- [elpa] master 03e7e70 27/90: counsel.el (counsel-M-x): New command, Oleh Krehel, 2015/06/30
- [elpa] master efa751b 28/90: counsel.el (counsel-M-x): Piggyback on smex for sorting, Oleh Krehel, 2015/06/30
- [elpa] master ebead12 29/90: Add fuzzy matching function, Oleh Krehel, 2015/06/30