Rdoc Widget

August 14, 2006

Stumbled across this wonderful RDoc Dashboard widget today.

With this widget all of the Rails and Ruby APIs is just a tap on F8 away. Incredibly nice for an API addict as me!

The widget really suffers from the lack of one feature, though: You cannot copy and paste anything from the RDoc documents.

I fiddled a bit with the source and figured out how to fix that. Here is the recipe:

Browse to the widget in the ~/Library/Widgets folder and select ‘Show Package Contents’ from the context menu.

Open the file RDoc.css in your favorite text-editor.

Under #docoDiv uncomment the line:

  1. -apple-dashboard-region: dashboard-region(control rectangle);

Add the line:

@css

-khtml-user-select:text;

Save the file, and enjoy copying and pasting from the APIs!


Posted by Mathias Biilmann. Category: Ruby. Tags: ruby, os x.

Similar Posts


Comments

Leave a comment