Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: char-fold-to-regexp like isearch #622

Closed
sooheon opened this issue Aug 12, 2016 · 2 comments
Closed

Feature request: char-fold-to-regexp like isearch #622

sooheon opened this issue Aug 12, 2016 · 2 comments

Comments

@sooheon
Copy link
Contributor

sooheon commented Aug 12, 2016

This post introduces a feature of emacs 25, searching for unicode characters (like á, ⓐ, or 𝒶) just by typing ascii "a".

This seems useful, could it be added to swiper without too much hassle?

@sooheon
Copy link
Contributor Author

sooheon commented Sep 18, 2016

There is a function char-fold-to-regexp that returns the necessary regexp for this.

@abo-abo
Copy link
Owner

abo-abo commented Sep 20, 2016

Thanks, try it out. I don't know how slow this can potentially be. For small buffers, for sure no problem. And no compatibility to counsel-grep, since grep does not fold.

abo-abo added a commit that referenced this issue Jun 22, 2019
Set:

    (setq search-default-mode 'char-fold-to-regexp)

And your search for "un" will also match "Günther".

Fixes #2095
Re #622
astoff pushed a commit to astoff/swiper that referenced this issue Jan 1, 2021
Set:

    (setq search-default-mode 'char-fold-to-regexp)

And your search for "un" will also match "Günther".

Fixes abo-abo#2095
Re abo-abo#622
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants