branch: master
commit f5276b073c72d44337ac33852fef9b7e57f793f6
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
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)