text-case.nvim
text-case.nvim copied to clipboard
Keep cursor position when using String case conversions functions
Hello! I'm a long time user, and I'm recently trying to limit cursor movement when possible in my config.
When I'm on an identifier and do crl
to 'coerce-to-lowercase', the cursor is always moved to the start of that identifier.
I'm looking for a way to keep the cursor on the same character as before.
(note: saving and restoring the cursor position isn't enough, as the cursor could end up outside of the identifier if it's shorter after coersion 🤔)
Is there a way to do this already? Or do you think you could add a way to do it?