roadrunnertwice: Me looking up at the camera, wearing big headphones and a striped shirt. (Glance)
Time elapsed between seeing the heads-up on Daring Fireball and slapping down my $30 upgrade fee: very freaking little. There was a time not too long ago when I couldn't believe a text editor could be worth $125 plus upgrade costs—well, it was actually $200 or so at the time, but whatever—but now I'm pretty much happy to pay Bare Bones whatever they ask. BBEdit is one of the very few programs that works the way my brain does.

Anyway, I've read the release notes and am in the process of poking at the thing. I'm still trying to decide whether I like the changes to the find dialog(s), but will raise an immediate Hell Yes for the new Projects feature, the Scratchpad, the ability to edit in disk browsers, and sub-line diffing.
roadrunnertwice: Me looking up at the camera, wearing big headphones and a striped shirt. (THE SHITBOX WENT TITS UP)
So I was trying to run some Ruby scripts from within BBEdit, and was getting nothing but guff -- it was running the wrong version of Ruby, refusing to look in my $PATH for required libraries, and barfing every time I even mentioned gems. I was having some problems in the Terminal, too, but an update/recompile of Ruby and rubygems made those go away. No such luck in BBEdit.

Eventually, I figured out that BB was basically pretending that my .profile file didn't exist... but only when using the shebang menu to run a script; shell worksheets were perfectly well-behaved.

The answer turned out to be that GUI apps get their environment variables from somewhere else entirely. I followed the instructions, making a plist with the appropriate $RUBYOPT and $PATH variables, and hey presto, victory!

(This post is dedicated to my sister, because I haven't posted anything incomprehensible and technical for, like, months, and she still gives me guff about it. I figure, if I'm gonna do the time anyhow...)

EDIT: So, you know the trick where you can add on to your path variable by saying, for example, export PATH=/opt/local/bin:/opt/local/sbin:~/bin:$PATH? Well, that doesn't work in environment.plist -- whatever system is reading the file can't expand the $PATH part of the trick, so you have to actually spell out every directory you want on your path. I discovered this when BBEdit learned about the /opt/local directories just fine, but forgot about /usr/bin.

It still knew /bin, though, which strikes me as odd -- apparently it's inheriting something from somewhere, but what it inherits is something other than the default value for $PATH. MYSTERY.

Also, remember that you have to log out and log back in for changes in environment.plist to take effect.
roadrunnertwice: Me looking up at the camera, wearing big headphones and a striped shirt. (Default)
So Apple has some new gadgets, or something? I mean, that's cool, but since I don't currently have:
  • a TV
  • any love for Cingular
  • $500,

it's kind of irrelevant to me. I was all, "Show me the Leopard!" and Steve was all "No." And I was all, "Man."

But considering Dem Bones just rolled out a totally bitchin' update to BBEdit, I am a more-than-happy-enough lad. Full-featured Markdown support, with proper previewing, syntax coloring, code-folding for lists, AND function navigation for headers? And the last two work vastly better than TextMate's Markdown support does? Nice.
roadrunnertwice: Me looking up at the camera, wearing big headphones and a striped shirt. (Reversal!)
♥♥ BBEdit and regular expressions:

Hmm, this converted text file of Kelly Link's Magic for Beginners sure isn't displaying properly on my iPod. Let's take a look at the source. (Text options --> Show Invisibles) Wow, hella non-printing ASCII characters! Y'all don't have to go home, but you can't stay here. (Text --> Zap Gremlins) And just in case: (Text --> Normalize Line Endings) And while I've got this open, I don't think I dig having new paragraphs marked with one linebreak and an apparently random number of spaces. Let's make that stop happening. (find: ^[\s]+(?=[\w"]) replace: \r)

Not that I can't make do with TextWrangler or Smultron for a few weeks, but I sure do hope I have enough money soon to actually pay for this program. I like it quite a bit.
roadrunnertwice: Me looking up at the camera, wearing big headphones and a striped shirt. (Mischief brewin'!)
So I really wanted to try the new version of BBEdit that dropped a day or two ago, but I'd used up my 30-day preview, and am not going to have money for software-buying for a while yet. But! It looks like whatever mechanism they use for cutting you off once your trial period is over does the right thing, allowing you to restart the counter once a new major revision hits.

Granted, the point of that is to get people who didn't like the earlier version to re-evaluate in light of the upgrade, not to throw a sop to "between jobs" 20-somethings who had already broken down and were planning to buy it anyway. But hey, I'll take what I can get.

And man, it's a nice release. Specifically, it's the first release where they're visibly competing with TextMate, and they lifted all kinds of cool stuff from it. (Text folding, a stronger snippets glossary clippings system, Ruby support that actually works, list controls in the status bar...) They also reorganized and completely de-fugged the interface (it no longer looks like a refugee from OS 9, huzzah), and implemented auto-save, sub-line diffing (oh my GOD that's exciting), and as-you-type spellcheck. Probably some other stuff. And they ditched the Comic Sans and brought back the Palatino or whatever it was for the 'B' in the icon image.

Anyway, it's a keeper. I really do like this program, and a LOT more than I was ever expecting to. I'll probably write more about it later.