Parallels Desktop crystal mode is awesome. When combined with the “Mac look” option, you don’t even know you’re in Windows…
The only issue I ran into is that when you hit CMD+Space for Spotlight, the Windows Start menu pops up and makes Spotlight disappear. The fix was easy enough:
- Exit crystal mode
- Go to Parallels Preferences menu
- Under the Keyboard & Mouse tab, create two shortcuts
- Change the Cmd -> Win shortcut to whatever you want to open the Windows Start menu (you can see I set it to Ctrl+Space above, in the spirit of Spotlight)
- Create a dummy Cmd shortcut to Ctrl (basically to have it od nothing in Windows). This will just have Parallels forward the Cmd to the Mac side and open Spotlight.
Awesome plug-in! Uh, ok… but what the heck does it do?!?! Here’s a list of the goodness:
- Jump to steps
- CTRL-] opens the step definition in the current window
- CTRL-W ] opens it in a split window (optionally hold CTRL with the ‘]’)
- CTRL-W opens in a split preview window
- Autocomplete – it seems from the source that it should work, but I can’t get it going. I posted a question on the cucumber mailing list.
It is unbelievably easy to create a wicked setup, although I spent half a day googling to narrow it down to the exsentials:
- Ruby with the One-click installer.
- Vim’s self-installing Windows executable (this comes with many customizations you read about online, and ruby support, included)
- snipMate, a plug-in that automatically expands common Ruby constructs (e.g. you type ‘cla<tab>,’ which becomes class…end with placeholders!)
- AutoComplPop (must have!!!), an autocomplete plugin very much like Xcode’s – start typing and a popup list of completion options appears. superTab, another plug-in that allows you to use tab to auto-complete Ruby code
- wombat, a great color scheme
Add the following settings to /path/to/vim/_vimrc.
note: the autocomplete menu colors, and vim’s default font are disgusting, hence the changes.
In the vimrc above, the following is added:
- the first line sets up superTabs to look in the right place for Ruby completions (I use AutoComplPop now, see above)
- adds line numbers to several source code file types
- changes the ridiculous 8-space tabs to 2
That’s it! Happy coding
There isn’t much info out there about compatibility, but here’s the rundown after a few hours of experimentation and research:
- MacRuby: fully integrated (according to Apple’s docs), so classes, outlets and actions automatically appear in IB
- Nibs: there is a utility that adds classes, actions, and outlets to IB
- Xibs: we’re out of luck, you must add items to IB manually
I am on fire about Ruby. I always hated Objective-C’s weirdness (coming from C++), and read the most awesome idea recently – given the amazing power of modern computers (now pay attention, this is the good part): writing code in anything but the highest level, easiest language is… premature optimization!!! The instant I read that statement (sorry to the author, I can’t remember where), I knew it was true. Add that you can drop down from Ruby to lower level languages where you need extra speed, and that MacRuby and HotCoca are going to make it ridiculously easy to use Cocoa via Ruby and…
That’s it – I’m hooked. To get myself up to speed in Ruby and Cocoa, I’m re-writing the examples from Aaron Hillegass’s awesome book Cocoa Programming for Mac OS X. I’ll be writing about the intricacies of BDD in Ruby using Xcode, and I’ll be posting all the code, as well as custom file and project templates for Xcode.