Switch words Shortcut


#1

Hey guys,
I recently switched to atom from sublime and even though most features are similar, I am missing the ctrl+T shortcut which would switch/exchange two highlighted words. E.g. ‘test1’ ‘test2’ would become ‘test2’ ‘test1’.
Is there an explicit feature like this in atom?

Thanks for your time,

Ben


#2

Atom has a transpose command, editor:transpose, which is what I recollect Sublime called it, but it doesn’t behave like Sublime’s transposition.

In your example, the produced result would be 1tset 2tset instead of test2 test1


#3

Did they ever add this? The transpose in Atom is pretty much worthless, whereas the one in Subilme is extremely useful.


#4

It wouldn’t be too hard to write a command in init.coffee to do this.