[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f5276b0 180/348: Add char-fold-to-regexp option to swiper
From: |
Oleh Krehel |
Subject: |
[elpa] master f5276b0 180/348: Add char-fold-to-regexp option to swiper |
Date: |
Sat, 8 Apr 2017 11:03:51 -0400 (EDT) |
branch: master
commit f5276b073c72d44337ac33852fef9b7e57f793f6
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Add char-fold-to-regexp option to swiper
* swiper.el (swiper--re-builder): Update.
Use (setq search-default-mode 'char-fold-to-regexp) for this.
Fixes #622
---
swiper.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/swiper.el b/swiper.el
index 43c3c43..7c2abcc 100644
--- a/swiper.el
+++ b/swiper.el
@@ -441,6 +441,8 @@ line numbers. For the buffer, use `ivy--regex' instead."
(prog1 (format "^ ?\\(%s\\)" re)
(setq ivy--subexps 1))
(format "^ %s" re))))
+ ((eq search-default-mode 'char-fold-to-regexp)
+ (mapconcat #'char-fold-to-regexp (ivy--split str) ".*"))
(t
(funcall re-builder str)))))
(cond ((stringp re)
- [elpa] master bc96feb 141/348: ivy.el (ivy--recompute-index): Update condition, (continued)
- [elpa] master bc96feb 141/348: ivy.el (ivy--recompute-index): Update condition, Oleh Krehel, 2017/04/08
- [elpa] master 45e29af 147/348: counsel.el: Fix compile warning, Oleh Krehel, 2017/04/08
- [elpa] master 04c2160 151/348: Replace references to evil-jumper with evil-jumps, Oleh Krehel, 2017/04/08
- [elpa] master c2974a5 154/348: Depend on Emacs 24.3, since user-error is used, Oleh Krehel, 2017/04/08
- [elpa] master e9db958 145/348: Rename ivy-recentf -> counsel-recentf, Oleh Krehel, 2017/04/08
- [elpa] master 78be161 165/348: Fix alist and :predicate interaction, Oleh Krehel, 2017/04/08
- [elpa] master 1c09e99 156/348: ivy.el (ivy-call): Use select-window, not with-ivy-window, Oleh Krehel, 2017/04/08
- [elpa] master ec42e8a 177/348: swiper.el (swiper-multi-action-1): Fix regression, Oleh Krehel, 2017/04/08
- [elpa] master 778c325 183/348: ivy.el (ivy-call): Don't switch windows for 'identity action, Oleh Krehel, 2017/04/08
- [elpa] master 1e96d20 201/348: ivy-overlay.el (ivy-display-function-overlay): Fix up, Oleh Krehel, 2017/04/08
- [elpa] master f5276b0 180/348: Add char-fold-to-regexp option to swiper,
Oleh Krehel <=
- [elpa] master 9f5f6e0 202/348: ivy-overlay.el (ivy-overlay-cleanup): Fixup, Oleh Krehel, 2017/04/08
- [elpa] master 74d83ab 216/348: Sort virtual buffers after open buffers., Oleh Krehel, 2017/04/08
- [elpa] master 17f8fb3 219/348: ivy.el (ivy-switch-buffer-other-window): Obey ivy-ignore-buffers, Oleh Krehel, 2017/04/08
- [elpa] master 07388d0 226/348: Shrink ivy to suitable height when reading actions., Oleh Krehel, 2017/04/08
- [elpa] master 2237916 223/348: ivy.el (ivy-call): setq default-directory instead of let, Oleh Krehel, 2017/04/08
- [elpa] master 1d97984 227/348: Ensure that ivy--regex-ignore-order always returns legal regexps, Oleh Krehel, 2017/04/08
- [elpa] master 7e02815 235/348: Fix counsel-rg to follow matching candidate, Oleh Krehel, 2017/04/08
- [elpa] master 530b7de 246/348: ivy.el: Use predicate when reading file names, Oleh Krehel, 2017/04/08
- [elpa] master 1c801a0 243/348: Ignore TAGS buffers in swiper-all, Oleh Krehel, 2017/04/08
- [elpa] master 6519ecc 248/348: ivy.el (ivy-call): Don't mess with default-directory, Oleh Krehel, 2017/04/08