emacs-evil / evil

The extensible vi layer for Emacs.
GNU General Public License v3.0
3.35k stars 283 forks source link

visual selection + prettify #1871

Open aloispichler opened 6 months ago

aloispichler commented 6 months ago

Issue type

Issue

Selecting text in prettify-symbols-mode in Evil visual mode: Suppose the text is \alpha\beta\gamma, prettified as αβγ. Selecting from right to left typing h in visual mode will select γ, next βγ and αβγ, which is as desired. Selecting from left to right typing l in visual mode, however, selects \, then \a, next α\b, and αβ\g. This is not desired… This faulty behavior causes issues when yanking, deleting, substituting, … text, unfortunately. The basic movements h and l should both respect prettify. Would be nice to have this behavior corrected – thanks!

I use prettify when writing LaTeX in Emacs. Here is the list from emacs' AUCTeX.

(setq prettify-symbols-alist ' 
(("\\alpha" . 945)
 ("\\beta" . 946)
 ("\\gamma" . 947)
 ("\\delta" . 948) …