]> code.delx.au - gnu-emacs-elpa/commitdiff
counsel.el (counsel-git-grep-history): New defvar
authorOleh Krehel <ohwoeowho@gmail.com>
Thu, 25 Jun 2015 16:42:25 +0000 (18:42 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Thu, 25 Jun 2015 16:42:25 +0000 (18:42 +0200)
* counsel.el (counsel-git-grep): Use `counsel-git-grep-history'.

counsel.el

index 03cf94c975071ed02b24cc232cc076582e6c2bc9..7cbe9e7a381c61c6e3fdf2000c5698f424bb77cf 100644 (file)
         (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."
                                     '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."