Skip to content

Keep cursor position when using String case conversions functions #180

@bew

Description

@bew

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions