emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 050b4a4 023/399: counsel.el (counsel-grep-history): Add


From: Oleh Krehel
Subject: [elpa] master 050b4a4 023/399: counsel.el (counsel-grep-history): Add
Date: Sat, 20 Jul 2019 14:56:40 -0400 (EDT)

branch: master
commit 050b4a47701902c3624127e93c3a027c04973c1d
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel-grep-history): Add
    
    * counsel.el (counsel-grep): Now has its own history.
    
    Fixes #1914
---
 counsel.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index d4ddf7d..73f2b76 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2785,6 +2785,9 @@ substituted by the search regexp and file, respectively.  
Neither
 (ivy-set-occur 'counsel-grep 'counsel-grep-occur)
 (counsel-set-async-exit-code 'counsel-grep 1 "")
 
+(defvar counsel-grep-history nil
+  "History for `counsel-grep'.")
+
 ;;;###autoload
 (defun counsel-grep (&optional initial-input)
   "Grep for a string in the file visited by the current buffer.
@@ -2813,7 +2816,7 @@ When non-nil, INITIAL-INPUT is the initial search 
pattern."
                                          (line-end-position)))))
 
                              :keymap counsel-grep-map
-                             :history 'counsel-git-grep-history
+                             :history 'counsel-grep-history
                              :update-fn (lambda ()
                                           (counsel-grep-action 
(ivy-state-current ivy-last)))
                              :re-builder #'ivy--regex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]