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

visual selection + prettify #1871

Open
aloispichler opened this issue Mar 19, 2024 · 0 comments
Open

visual selection + prettify #1871

aloispichler opened this issue Mar 19, 2024 · 0 comments

Comments

@aloispichler
Copy link

aloispichler commented Mar 19, 2024

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

1 participant