evil icon indicating copy to clipboard operation
evil copied to clipboard

visual selection + prettify

Open aloispichler opened this issue 11 months ago • 0 comments

Issue type

  • Bug report

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) …

aloispichler avatar Mar 19 '24 13:03 aloispichler