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

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

[elpa] master dc3f469 131/399: swiper.el (swiper-isearch): Extend


From: Oleh Krehel
Subject: [elpa] master dc3f469 131/399: swiper.el (swiper-isearch): Extend
Date: Sat, 20 Jul 2019 14:57:09 -0400 (EDT)

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

    swiper.el (swiper-isearch): Extend
---
 swiper.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/swiper.el b/swiper.el
index a480cf9..20fcf54 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1143,7 +1143,7 @@ See `ivy-format-function' for further information."
           (swiper--add-overlays (ivy--regex ivy-text))))
     (swiper--cleanup)))
 
-(defun swiper-isearch ()
+(defun swiper-isearch (&optional initial-input)
   "A `swiper' that's not line-based."
   (interactive)
   (swiper--init)
@@ -1153,8 +1153,12 @@ See `ivy-format-function' for further information."
          (and
           (setq res
                 (ivy-read
-                 "iswiper: " #'swiper-isearch-function
+                 "iswiper: "
+                 #'swiper-isearch-function
+                 :initial-input initial-input
+                 :keymap swiper-map
                  :dynamic-collection t
+                 :require-match t
                  :action #'swiper-isearch-action
                  :update-fn 'auto
                  :unwind #'swiper--cleanup



reply via email to

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