[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 0f141f5 18/31: counsel.el (counsel-git-grep): Add optional
From: |
Oleh Krehel |
Subject: |
[elpa] master 0f141f5 18/31: counsel.el (counsel-git-grep): Add optional initial-input |
Date: |
Fri, 01 May 2015 14:28:56 +0000 |
branch: master
commit 0f141f53a527b2279026d62e6f7ee2600a778171
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-git-grep): Add optional initial-input
* counsel.el (counsel-git-grep): Update.
Fixes #66
---
counsel.el | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/counsel.el b/counsel.el
index f41608d..27825fe 100644
--- a/counsel.el
+++ b/counsel.el
@@ -219,7 +219,7 @@
(setq ivy--full-length (counsel-git-grep-count ivy-text)))
(split-string res "\n" t))))
-(defun counsel-git-grep ()
+(defun counsel-git-grep (&optional initial-input)
"Grep for a string in the current git repository."
(interactive)
(unwind-protect
@@ -236,7 +236,8 @@
(setq swiper--window
(selected-window))
(swiper--cleanup)
(swiper--add-overlays (ivy--regex
ivy-text)))))
- (val (ivy-read "pattern: " 'counsel-git-grep-function)))
+ (val (ivy-read "pattern: " 'counsel-git-grep-function
+ :initial-input initial-input)))
(when val
(funcall ivy--persistent-action val)))
(swiper--cleanup)))
- [elpa] master b2c9a20 09/31: Store the preselect and use it for empty ivy-text, (continued)
- [elpa] master b2c9a20 09/31: Store the preselect and use it for empty ivy-text, Oleh Krehel, 2015/05/01
- [elpa] master 988b78f 08/31: Improve completion history using the propertize trick, Oleh Krehel, 2015/05/01
- [elpa] master eb43e4a 10/31: ivy.el (ivy-alt-done): Treat `ivy-text' with ":" verbatim, Oleh Krehel, 2015/05/01
- [elpa] master 00810d6 11/31: ivy.el (ivy--filter): Fixup, Oleh Krehel, 2015/05/01
- [elpa] master 7f04019 12/31: swiper.el (swiper-font-lock-ensure): Exclude `elfeed-search-mode', Oleh Krehel, 2015/05/01
- [elpa] master 278870e 13/31: Use alpha compositing to add ivy-current-match face, Oleh Krehel, 2015/05/01
- [elpa] master 57de44c 14/31: Makefile: Update, Oleh Krehel, 2015/05/01
- [elpa] master 56d7802 15/31: Add an option for multi-tier regex matching, Oleh Krehel, 2015/05/01
- [elpa] master 7299950 16/31: ivy.el: Fixup docstrings, Oleh Krehel, 2015/05/01
- [elpa] master aa9d4a7 17/31: ivy.el (ivy-re-builders-alist): Improve doc, Oleh Krehel, 2015/05/01
- [elpa] master 0f141f5 18/31: counsel.el (counsel-git-grep): Add optional initial-input,
Oleh Krehel <=
- [elpa] master 23ffa25 19/31: Bind "TAB" to do partial completion, Oleh Krehel, 2015/05/01
- [elpa] master ae2fd1a 21/31: Improve hidden buffer completion further, Oleh Krehel, 2015/05/01
- [elpa] master 5dc26fb 20/31: Improve the completion of hidden buffers, Oleh Krehel, 2015/05/01
- [elpa] master 1332b19 22/31: ivy.el (ivy--exhibit): Fixup last commit, Oleh Krehel, 2015/05/01
- [elpa] master 6b2e95a 24/31: Add gamma-correction to alpha-blending, Oleh Krehel, 2015/05/01
- [elpa] master a868705 23/31: colir.el: Add two additional blend algorithms, Oleh Krehel, 2015/05/01
- [elpa] master 7bd6003 25/31: Update and improve faces, Oleh Krehel, 2015/05/01
- [elpa] master 94b6a83 26/31: Don't error on bad regex, Oleh Krehel, 2015/05/01
- [elpa] master 0dd6c5a 27/31: ivy.el (ivy--regex): Fixup, Oleh Krehel, 2015/05/01
- [elpa] master fc84e0d 28/31: ivy.el (ivy-read): Reset `ivy-text' earlier, Oleh Krehel, 2015/05/01