SublimeText/RSpec — pull request #11 by rexikan (2012-06-24 19:12:41+00:00)
Title: Improved open rspec file

Here is a somewhat opinionated pull request that changes how OpenRSpecFile and RSpecCreateModule places the views inside the focus group. I hope it is considered anyway!

The idea is to use whatever focus group layout that the user has to place the views. For example, if you have a layout with two groups and the code to the left, then the OpenRspecFileCommand will open the spec to the right, and the other way around. If both files is open the command will toggle between them.

Benefits:
* Doesn't touch the users group layout.
* The user can have the code and spec in any order that he wants.
* Only one keyboard shortcut is needed instead of four.
* Works well with any layout. For example, if the user uses the grid layout, the code and spec will open in each column on the same row.

I also removed windows style line endings to make the package consequent in that regard.

Cheers!