edkolev / evil-lion

Evil align operator
131 stars 12 forks source link

no operator-state cursor when waiting for alignment character #11

Open unhammer opened 7 years ago

unhammer commented 7 years ago

When I type gl, the cursor changes from normal to operator (in my setup, goes from a filled green box to an empty red one), but after I've typed e.g. ip, it changes back to the normal-state (green box). Can we have it stay the operator cursor until I've typed the alignment character? The first time I tried it, I thought alignment wasn't working at all, so I gave up and pressed M-x align

edkolev commented 7 years ago

I'll have to check if evil-define-operator can be tweaked so we can achieve this behaviour.

Regardless, it might be a good idea if evil-lion showed a message "Alignment char: " or something when it's expecting a character from the user.