How to use ASCII characters to search accented characters in consult-line? #1057
-
Let me explain a minimal working example: I saved the contents of the code block below to (use-package consult
:bind
("C-l" . consult-line)) I saved the contents of the code block below to
I started Emacs using the following command: $ emacs --quick --eval='(load "/tmp/a.el")' --eval='(find-file "/tmp/a.txt")' I pressed
I want the results to be:
That is, I want to use ASCII characters to search accented characters. How to accomplish this behavior with MotivationI'm currently editing files in a language that use the accented characters (e.g. áéíóú). I wish I could use ASCII characters to match accented characters when using Additional informationI found some sexps on the Internet that might be relevant to this issue. The following sexp was retrieved from this comment at Emacs Stack Exchange. (char-fold-to-regexp "a")
The following sexp was retrieved from this answer at Emacs Stack Exchange. (char-to-string (car (get-char-code-property ?á 'decomposition)))
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hint: Search for |
Beta Was this translation helpful? Give feedback.
Hint: Search for
char-fold-to-regexp
in the Orderless documentation.