branch: master
commit 7e188d54e74b779759513a66882126e42fac32b9
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-git-grep): Customize re-builder
The point is not to use `ivy--regex-plus' because it treats "!"
differently, and those are useful as literals.
---
counsel.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index 171bfd9..ff1d547 100644
--- a/counsel.el
+++ b/counsel.el
@@ -993,7 +993,8 @@ INITIAL-INPUT can be given as the initial minibuffer input."
(cmd
(setq counsel-git-grep-cmd
(ivy-read "cmd: " counsel-git-grep-cmd-history
- :history 'counsel-git-grep-cmd-history))
+ :history 'counsel-git-grep-cmd-history
+ :re-builder #'ivy--regex))
(setq counsel-git-grep-cmd-history
(delete-dups counsel-git-grep-cmd-history)))
(t