branch: master commit a287f395def4ddc9ec51166c85082e7aa2edc566 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
counsel.el (counsel-git-grep-history): New defvar * counsel.el (counsel-git-grep): Use `counsel-git-grep-history'. --- counsel.el | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/counsel.el b/counsel.el index 03cf94c..7cbe9e7 100644 --- a/counsel.el +++ b/counsel.el @@ -254,6 +254,9 @@ (swiper--cleanup) (swiper--add-overlays (ivy--regex ivy-text)))))) +(defvar counsel-git-grep-history nil + "History for `counsel-git-grep'.") + ;;;###autoload (defun counsel-git-grep (&optional initial-input) "Grep for a string in the current git repository." @@ -270,7 +273,8 @@ 'counsel-git-grep-function) :keymap counsel-git-grep-map :action #'counsel-git-grep-action - :unwind #'swiper--cleanup))) + :unwind #'swiper--cleanup + :history 'counsel-git-grep-history))) (defcustom counsel-find-file-at-point nil "When non-nil, add file-at-point to the list of candidates."