v4run / transpose

Transpose is an extension for VSCode for transposing selection or characters.
https://marketplace.visualstudio.com/items?itemName=v4run.transpose
MIT License
18 stars 3 forks source link

Wrong cursor position when transposing characters #3

Closed MarianoWalter closed 5 years ago

MarianoWalter commented 5 years ago

If I want to transpose de characters a and b in the string abc the result is bac but the cursor is now between a and c, not between b and a. I just don't think it's the desired behavior.

v4run commented 5 years ago

Hi, @MarianoWalter Thanks for the pull request. This actually is the intended behaviour. It mimics the transpose operation in sublime text.

MarianoWalter commented 5 years ago

Oops, I didn't remember that. By the way great extension :+1: . I missed that functionality when I switched to VS Code.

v4run commented 5 years ago

Thanks. :smile: