-
Notifications
You must be signed in to change notification settings - Fork 22
Feature request: automatically replace texas ops with unicode equivalents #8
Comments
I think this is a good idea, and would accept a PR implementing this; you could accomplish this like so: if get(g:, 'perl6_mess_with_texas', 1)
inoremap <= ≤
endif |
iabbrev <buffer> / ÷ I believe this interacts poorly with a couple of things, e.g.:
edit: as I just found out, the abbreviation for |
@mickk-on-cpp does it perform the replacement automatically on the whole document? I thought you'd have to explicitly tell it to do the substitution at cursor. And if so, it's not a problem if it replaces wrong stuff? |
The abbreviation system does take place on input and is not a global substitution, but it is implicit and not explicit. The examples I gave illustrate what happens when writing e.g. a
The crux of the issue is that if the user is more likely to use Right now I’m disabling |
I see. |
@mickk-on-cpp That is correct, I did disable the |
This ticket is inspired by reddit comments.
Example: you type
<=
, it should automatically replaces it with≤
. Obviously, make it possible to turn that feature off, but perhaps consider having it enabled by default.List of non-texas ops: https://docs.perl6.org/language/unicode_texas
Sister tickets:
The text was updated successfully, but these errors were encountered: