IdolHands.com :: Days in the Life of an Alpha Geek
This script addition integrates the cheat gem to let you access cheat sheets from within BBEdit. To use the script, highlight a term in a BBEdit window (like strftime) and either use a keyboard shortcut or select the script from the Scripts menu item. A new window will open, populated with the cheatsheet. If you invoke the script without first highlighting anything, you will be presented with a dialog box from which you can enter the name of a specific cheat sheet, get help with Cheat, or access a list of available cheat sheets.
Thanks to Lorin Rivers at Mosasaur (www.mosasaur.com) for additional script improvements.
This script depends on the 'cheat' gem. Install cheat by typing the following in Terminal:
sudo gem install cheat
Next, download the Rails Cheet Sheets for BBEdit scripting addition:
rails_cheatsheet.zip (8k)
Then copy the file "Rails Cheatsheet" into ~/Library/Application Support/BBEdit/Scripts/, and it will show up in your Scripts menu in BBEdit.
To use the script, highlight a term in a BBEdit window (like strftime) and either hit your keyboard shortcut or select the script from the Scripts menu item. A new window will open, populated with the cheatsheet.
If you invoke the script without first highlighting anything, you will be presented with a dialog box from which you can enter the name of a specific cheat sheet, get help with Cheat, or access a list of available cheat sheets.
For added convenience, add a keyboard shortcut. Pull up Window > Palettes > Scripts, select 'Rails Cheatsheet', and click Set Key. (I use command R.)
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.