* Interactively edit IRB code in your preferred text editor
* Read from and write to OS X clipboard
* Post your code to Pastie with one command (OS X only)
* Kick-ass Unix-style history buffer
* Write command history to file or vi
* Grep classes and methods for strings
* Verbosity controls for regular IRB and Rails console
* Finder shortcuts for Rails console
* Upload shortcut for Amazon S3
* Command-line Amazon S3 upload script
* Command-line Google shortcut (OS X only)
* Auto-indentation
* _ special variable (like Unix shell var !!)
* Extremely basic themes for Wirble syntax coloring
* Pascal/JavaScript-style "with" statement
* String#to_proc
* Grammatically-correct is_an? method - no more "is_a? Array"
A small problem with the grep_classes(“num”) functionality: the method
blank? isn’t defined on Strings in my default setup, and so an
exception is thrown. I added this to the top of the language_greps.rb
file
class String
def blank?
instance_method(:blank?) rescue def blank?
self !~ /\S/
end
end
end
Awesome work Giles. I kept meaning to get around to some of those
myself, after watching somebody type “mate” in their irb and making me
jealous. Now I don’t have to maintain a complicated .irbc across
machines, I can just install utility_belt.
I made a couple tweaks on my local copy, if you are interested.
Letting the editor commands accept a string has two really nice use-
cases: dumping the results of "" when you get spammed by output, and
passing in a method_binding.to_ruby if you are using ruby2ruby (lets
you edit and thus redefine said method). Both cases ( and #to_ruby)
apply to pastie too:
My crappy fcgi’ed Typo install is slow sometimes. If it dies let me
know and I can just send you a patch, or submit it here, or elsewhere
if you want to open up the rubyforge ticketing or something.
That’s right god damn it. I lurk up here in my castle dining on the
flesh of infants and cavorting with my harem of she-demons, and to
hell with anyone too weak to cross the moat or survive a battle with
the deep crow in Power Dome A.
This is what happens when you twiddle the comments_enabled? bit every
other month and kvetch about both that and turning email off. I
did track down your email, here in fact, but then saw that you already
posted a thread, so decided not to ping you.
Anyway, I’ve already got too many contributions to handle them all
tonight, so I obviously have to set up some kind of community organizy
thing, and I will, but meantime, you should realize, I actually
mention needing this feature in the documentation, somewhere. I think.
Point is it’s definitely useful and I will merge it in real
soonish-like. I’ll change it slightly though because the original code
passes around edit’s args too much so that needs to be tidied up
somewhere.
Yeah it was a quick hack to get it working, since I wasn’t sure you
were taking contributions yet. Clean away.
My crappy fcgi’ed Typo install is slow sometimes. If it dies let me
know and I can just send you a patch, or submit it here, or elsewhere
if you want to open up the rubyforge ticketing or something.
Please do, [email protected].
I’ll shoot it over tomorrow - it’s on my work machine. In patch
format, I assume? Or you just want the files?
I’ll look at the ticketing. I initially
closed down everything on RF because it all looked so noisy and messy,
but I’ve been unable to restore forums, so I’ll probably have to set
up Lighthouse or something. I don’t know yet.
Yeah, most of the *Forges are visual and cognitive overload for me,
personally. That’s a large part of why I’ve used google code for one-
offs. A Lighthouse gets my +1 though.
were taking contributions yet. Clean away.
Roger that.
My crappy fcgi’ed Typo install is slow sometimes. If it dies let me
know and I can just send you a patch, or submit it here, or elsewhere
if you want to open up the rubyforge ticketing or something.
Please do, [email protected].
I’ll shoot it over tomorrow - it’s on my work machine. In patch
format, I assume? Or you just want the files?
Patch/diff is best, anything I can read is cool though.
I’ll look at the ticketing. I initially
closed down everything on RF because it all looked so noisy and messy,
but I’ve been unable to restore forums, so I’ll probably have to set
up Lighthouse or something. I don’t know yet.
Yeah, most of the *Forges are visual and cognitive overload for me,
personally. That’s a large part of why I’ve used google code for one-
offs. A Lighthouse gets my +1 though.
Google Code, that’s worth a look. Not for this project, it’s what gems
were made for, but I have another thing which fits that whole one-off
profile pretty nicely.
Giles isn’t known for making himself easy to get a hold of
That’s right god damn it. I lurk up here in my castle dining on the
flesh of infants and cavorting with my harem of she-demons, and to
hell with anyone too weak to cross the moat or survive a battle with
the deep crow in Power Dome A.
Anyway, I’ve already got too many contributions to handle them all
tonight, so I obviously have to set up some kind of community organizy
thing, and I will, but meantime, you should realize, I actually
mention needing this feature in the documentation, somewhere. I think.
Point is it’s definitely useful and I will merge it in real
soonish-like. I’ll change it slightly though because the original code
passes around edit’s args too much so that needs to be tidied up
somewhere.
My crappy fcgi’ed Typo install is slow sometimes. If it dies let me
know and I can just send you a patch, or submit it here, or elsewhere
if you want to open up the rubyforge ticketing or something.
Please do, [email protected]. I’ll look at the ticketing. I initially
closed down everything on RF because it all looked so noisy and messy,
but I’ve been unable to restore forums, so I’ll probably have to set
up Lighthouse or something. I don’t know yet.