electric-operator icon indicating copy to clipboard operation
electric-operator copied to clipboard

Cannot insert a `=` before a `=` without surrounding it with spaces

Open nordlow opened this issue 3 years ago • 1 comments

If you, for instance, want to change a != to a == be replace ! with a = electric-operator-mode will, incorrectly, insert source the prepending = with a space.

nordlow avatar Aug 23 '20 09:08 nordlow

Hi, yeah at the moment electric operator only looks backwards for operators. I'm not sure, but I suspect that looking forwards as well might add a lot of complexity and make the UX worse in some cases. I'll have a think about it sometime :slightly_smiling_face:

davidshepherd7 avatar Sep 29 '20 07:09 davidshepherd7