[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra d4e17ee 009/395: Also remember search history
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra d4e17ee 009/395: Also remember search history when using swiper-isearch |
Date: |
Thu, 25 Feb 2021 08:31:19 -0500 (EST) |
branch: externals/ivy-hydra
commit d4e17ee10aeba5dc3a02c9d2233b066cabd9d986
Author: wouter bolsterlee <wouter@bolsterl.ee>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
Also remember search history when using swiper-isearch
Fixes #2293
Fixes #2294
---
swiper.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/swiper.el b/swiper.el
index 3e3e2b0..d8c6f54 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1100,6 +1100,7 @@ WND, when specified is the window."
(swiper--remember-search-history re)))))
(defun swiper--remember-search-history (re)
+ "Add the search pattern RE to the search history ring."
(add-to-history
'regexp-search-ring
re
@@ -1460,7 +1461,8 @@ that we search only for one character."
(goto-char (match-beginning 0)))
(isearch-range-invisible (point) (1+ (point)))
(swiper--maybe-recenter)
- (unless (eq ivy-exit 'done)
+ (if (eq ivy-exit 'done)
+ (swiper--remember-search-history (ivy--regex ivy-text))
(swiper--cleanup)
(swiper--delayed-add-overlays)
(swiper--add-cursor-overlay
- [elpa] branch externals/ivy-hydra created (now 65f5783), Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 8dc7a05 008/395: swiper.el (swiper--remember-search-history): Extract, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d4e17ee 009/395: Also remember search history when using swiper-isearch,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra c5e162a 013/395: swiper.el (swiper-thing-at-point): Use regexp-quote, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra be231a5 001/395: counsel.el (counsel-kmacro): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1ad457d 007/395: ivy.el (ivy-read-action-function): Fix type, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f6b3b29 011/395: counsel.el (counsel-compile-forget-command): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7b1af79 012/395: counsel.el (counsel--projectile-root): Add, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 32c097a 004/395: counsel.el (counsel-search): Rename from counsel-google and add DDG, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 884dd9e 025/395: counsel.el (counsel--git-grep-occur-cmd): Handle case folding, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 9666820 037/395: swiper.el (swiper--add-overlays): Don't miss highlights when at eol, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ad00c47 039/395: swiper.el (swiper--re-builder): Treat "\n" in input as a newline, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 64d18d1 002/395: counsel.el (counsel-ag): Respect case sensitivity settings, Basil L. Contovounesios, 2021/02/25