Ben Kittrell's rails environment

Ben Kittrell has written a straightforward how-to guide on creating the ideal Windows environment for Ruby on Rails development:

A Mac-esque Rails Development Environment on Windows

Transpose - The MultiTool

March 21st, 2007

Transpose is a versatile command that can save you a lot of typing. What it does is to ‘reverse the order of things’, but what makes it really useful is the fact that what it reverses depends on the context:

  • If the caret is inside a word, the chars on each side of the caret are swapped, and the caret is moved to after the right char. This makes for a quick way to fix typing mistakes.

  • If the caret is between two words, the words are swapped.

  • If the caret is at the beginning of a line, the line is swapped with the line above. Similarly if the caret is at the end of a line, the line is swapped with the line below. This makes for an easy way to move lines up and down through the document.

  • If there is a selection, the contents is reversed.

  • If there are multible selections (made by holding down ctrl while selecting), the selections are swapped.

  • If there is a column selection (made by holding down alt while selecting), the order of items in the entire column is reversed.

You can access it from the menu, but to really make it a timesaver, I would recommend making it a habit to use it’s shortcut Ctrl-T.

Transpose Menu