[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra b0029ca 010/395: Make casefold settings for c
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra b0029ca 010/395: Make casefold settings for counsel-git-grep work. |
Date: |
Thu, 25 Feb 2021 08:31:20 -0500 (EST) |
branch: externals/ivy-hydra
commit b0029ca793f745fe3ceba02ea7ade45db476d490
Author: Hong Xu <hong@topbug.net>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
Make casefold settings for counsel-git-grep work.
* counsel.el (counsel-git-grep-cmd-default)
(counsel-git-grep-function, counsel-git-grep-proj-function): Make casefold
settings in
`counsel-git-grep' work.
Fixes #2287
---
counsel.el | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/counsel.el b/counsel.el
index e263ad8..9966acb 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1316,7 +1316,7 @@ INITIAL-INPUT can be given as the initial minibuffer
input."
(define-key map (kbd "C-x C-d") 'counsel-cd)
map))
-(defvar counsel-git-grep-cmd-default "git --no-pager grep -n --no-color -i -I
-e \"%s\""
+(defvar counsel-git-grep-cmd-default "git --no-pager grep -n --no-color -I -e
\"%s\""
"Initial command for `counsel-git-grep'.")
(defvar counsel-git-grep-cmd nil
@@ -1362,7 +1362,9 @@ Typical value: '(recenter)."
(ivy-more-chars)
(progn
(counsel--async-command
- (funcall counsel-git-grep-cmd-function string))
+ (concat
+ (funcall counsel-git-grep-cmd-function string)
+ (if (ivy--case-fold-p string) " -i" "")))
nil)))
(defun counsel-git-grep-action (x)
@@ -1511,7 +1513,10 @@ When CMD is non-nil, prompt for a specific \"git grep\"
command."
(ivy-more-chars)
(let ((regex (setq ivy--old-re
(ivy--regex str t))))
- (counsel--async-command (format counsel-git-grep-cmd regex))
+ (counsel--async-command
+ (concat
+ (format counsel-git-grep-cmd regex)
+ (if (ivy--case-fold-p str) " -i" "")))
nil)))
(defun counsel-git-grep-switch-cmd ()
- [elpa] externals/ivy-hydra c5e162a 013/395: swiper.el (swiper-thing-at-point): Use regexp-quote, (continued)
- [elpa] externals/ivy-hydra c5e162a 013/395: swiper.el (swiper-thing-at-point): Use regexp-quote, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra be231a5 001/395: counsel.el (counsel-kmacro): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1ad457d 007/395: ivy.el (ivy-read-action-function): Fix type, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f6b3b29 011/395: counsel.el (counsel-compile-forget-command): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7b1af79 012/395: counsel.el (counsel--projectile-root): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 32c097a 004/395: counsel.el (counsel-search): Rename from counsel-google and add DDG, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 884dd9e 025/395: counsel.el (counsel--git-grep-occur-cmd): Handle case folding, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 9666820 037/395: swiper.el (swiper--add-overlays): Don't miss highlights when at eol, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ad00c47 039/395: swiper.el (swiper--re-builder): Treat "\n" in input as a newline, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 64d18d1 002/395: counsel.el (counsel-ag): Respect case sensitivity settings, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra b0029ca 010/395: Make casefold settings for counsel-git-grep work.,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra a2a3263 014/395: ivy.el (ivy-initial-inputs-alist): Add default behavior, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 2fe64cd 036/395: swiper.el (swiper--isearch-highlight): Don't hang on empty match data, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f50104c 021/395: ivy.el (ivy--cd-maybe): Exit with 'no-update-history, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 3b35b45 015/395: counsel.el (counsel-ack): Fix, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 47e5046 027/395: swiper.el (swiper--isearch-function-1): Don't skip match at eobp, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 43daeb1 029/395: counsel.el (counsel-git-grep): Set :require-match to t in `ivy-read', Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d28cd03 048/395: ivy.el (file-local-name): Define unless already defined, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra e1cfd32 052/395: ivy.el (ivy-use-group-face-if-no-groups): New defcustom, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 4f81b22 006/395: counsel.el (counsel-search-engines-alist): Fix, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 096ff2a 020/395: counsel.el: Fix compiler warning, Basil L. Contovounesios, 2021/02/25