[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

IRB MacOS X Dashboard Widget

Gavin Kistner

4/30/2005 8:09:00 PM

Sorry if I got anyone unduly excited - this isn't an announcement of
such a beast.

I want this - I'd love a simple dashboard widget that put IRB always
at my fingertips.

Ooh, and also an ri/rdoc widget, using a Spotlight adaptor.

How sweet would that be?

(Any point in making a *.rb Spotlight adaptor? If nothing else you
could inherit a standard text adaptor and throw 'ruby' into the
keywords, but I wonder if you could do anything more intelligent with
the source code.)

--
(-, /\ \/ / /\/


3 Answers

Richard Kilmer

4/30/2005 9:27:00 PM

0

I totally agree re: dashboard widget. There is a 'system' call in
the dashboard API and wrapping irb should be really straightforward.
Due to prior coding commitments, however, I may not be the first to
get this done ;-)

-rich

On Apr 30, 2005, at 4:09 PM, Gavin Kistner wrote:

> Sorry if I got anyone unduly excited - this isn't an announcement
> of such a beast.
>
> I want this - I'd love a simple dashboard widget that put IRB
> always at my fingertips.
>
> Ooh, and also an ri/rdoc widget, using a Spotlight adaptor.
>
> How sweet would that be?
>
> (Any point in making a *.rb Spotlight adaptor? If nothing else you
> could inherit a standard text adaptor and throw 'ruby' into the
> keywords, but I wonder if you could do anything more intelligent
> with the source code.)
>
> --
> (-, /\ \/ / /\/
>
>
>



Jacob Fugal

5/2/2005 4:00:00 PM

0

On Apr 30, 2005, at 4:09 PM, Gavin Kistner wrote:
> Sorry if I got anyone unduly excited - this isn't an announcement
> of such a beast.
>
> I want this - I'd love a simple dashboard widget that put IRB
> always at my fingertips.

On 4/30/05, Richard Kilmer <rich@infoether.com> wrote:
> I totally agree re: dashboard widget. There is a 'system' call in
> the dashboard API and wrapping irb should be really straightforward.
> Due to prior coding commitments, however, I may not be the first to
> get this done ;-)

(Disclaimer: I'm not home to test this on my own OSX)

Wouldn't it be possible to do something like this with QuickSilver[1]?
It'd be sweet to just hit command-space-irb from anywhere and have a
new irb session. No need for the mouse or anything, just five quick
keystrokes...

Jacob Fugal

[1] http://quicksilver.blac...



Mark Hubbart

5/2/2005 4:19:00 PM

0

On 5/2/05, Jacob Fugal <lukfugl@gmail.com> wrote:> On Apr 30, 2005, at 4:09 PM, Gavin Kistner wrote:> > Sorry if I got anyone unduly excited - this isn't an announcement> > of such a beast.> >> > I want this - I'd love a simple dashboard widget that put IRB> > always at my fingertips.> > On 4/30/05, Richard Kilmer <rich@infoether.com> wrote:> > I totally agree re: dashboard widget. There is a 'system' call in> > the dashboard API and wrapping irb should be really straightforward.> > Due to prior coding commitments, however, I may not be the first to> > get this done ;-)> > (Disclaimer: I'm not home to test this on my own OSX)> > Wouldn't it be possible to do something like this with QuickSilver[1]?> It'd be sweet to just hit command-space-irb from anywhere and have a> new irb session. No need for the mouse or anything, just five quick> keystrokes...
While these are both great ideas (I would certainly use one of them ifthey were available) I used another easy way to get IRB moreaccessible.
Just set up a terminal window, change the background color, and hitsave to save a term file. Specify irb as the program to run, and saveto ~/Library/Application Support/Terminal/IRB.term.
Now, using the keyboard prefpane, add a key combo in Terminal for"IRB". "â?§â??I" isn't taken, so I used that. Also, if you havequicksilver, it will index the Application support folder, andIRB.term will probably come up first on the list when you type "irb";giving another easy access method.
But if anyone makes the dashboard widget, I'll use that :)
cheers,Mark