Let's say I have the following:
['cart', 'horse']
Is there a quick way to swap the two so I have the following:
['horse', 'cart']
I'm referring to the actual text and not reordering an array programmatically. For example, I usually do something like this:
- Highlight and cut " 'horse'"
- Delete the trailing comma
- Paste " 'horse'" before "'cart'"
- Delete the leading space
- Add ", " after "'horse'"
I find myself needing to do this type of thing frequently, so I'm wondering if TextMate has some type of built-in functionality/bundle for accomplishing this.
Thanks.