TextMate and the Mac Dashboard
As you get more proficient with rails, the keyboard shortcuts in TextMate really start to help out. The challenge is memorizing all of them. I did not want to print a cheatsheet and keep it by my desk. I wanted something quick that would come up and then go away. Then the Mac dashboard came to mind.
Wouldn't it be nice to hit F12 and the cheatsheet comes up, hit it again and it goes away? So I did just that. And so that you do not have to do this yourself, I have inluded them for you to download.
Terminal and AppleScript
I mentioned that I like to have four terminal windows going while I code in Rails. script/console, mongrel console, breakpointer, tail of development.log.
So how do you get all these windows going every time you get started on Rails. It is a pain having to start a new windows for these. I could write a shell script I guess, but being a Mac, you have AppleScript.
I wrote a script that prompts for the rails app root folder and from there Textmate starts with that folder, Terminal starts and the four Terminal windows mentioned earlier, show up all running the appropriate processes. I even color coded the windows so that I can quickly orient myself.
I am enclosing the AppleScript source here. It is in source not a finished applescript because you might need to change the script to tweak it for your environment.
Anyway, hope you find these helpful.
Download
Dashboard Cheat Sheet Widget and Terminal AppleScript source.
Monday, December 18, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment