Sublime Forum

Swapper

#1

Hi everyone,
I want to share with you a simple plugin, but I think it’s very useful. It’s called Swapper , simply it swaps the two characters just before the cursor.
How many times you wanted to type ‘ea’ and you end up with ‘ae’ then you press backspace twice then rewrite, that’s 4 presses. With Swapper you do that with just one press f1.
That’s it, you can get it from github https://github.com/jawb/Swapper , I’ll add it to Package Control soon.

0 Likes

#2

Actually not very often, but I’m not native english.

The Transpose command (ctrl+t) do almost the same, if you want to do exactly what you want you can write a macro:

move {"by": "characters", "forward": false} transpose

0 Likes

#3

I’am not native English, but I do that mistake a lot , very nice trick by the way I didn’t know it !! But actually I’am planing to extend the plugin and add more text manipulation tricks that I need everyday.

0 Likes