I spend quite a bit of time looking for references on Google Scholar, and decided to see what I could do with LaunchBar 5 to make my life easier. Here’s a quick screencast to show what I’ve got going on:
For those of you who prefer some code, say you have a big long ugly line of code. You know it’s bad, but it works and you don’t want to break it. Here’s an example, very, very loosely based on some Matlab code I saw at work:
The obvious thing to do, is pull out that evil range -pi:0.1:pi. With the new ‘Introduce variable’ command (bound to ⌃⇧C, by default), you can do this be selecting any on of them, and running the command.
You’ll see a dialogue box asking you for a name for you new variable, and after you press OK, you’ll see the following:
Much better. You can also repeat the process to further simplify the line, and the command will insert the new variable before the first instance it finds. Cool hey?!
This command is also general enough that is should work for most languages that use assignments based on =. For more info on this concept, see refactoring.com, which I shall also be scouring for more ideas.
I’m very pleased to announce that the IPython TextMate bundle is in a state
where it can actually be used – you can probably consider it to be a pre-beta.
To celebrate this, I’ve made a simple screencast demoing some of the
basic features.
This screencast can also be downloaded, and I hope to give a quick overview of some of the more advanced features in a follow-up.
The main features of the bundle are:
Communication with IPython via the extension ipy_vimserver. This
means the bundle should work right out of the box: just run import ipy_vimserver; ipy_vimserver.setup('session'), and you can connect.
running the current file in IPython
running the current line / selection in IPython
running the current file / selection / line in IPython with the
profiler enabled
growl notification of salient points
rudimentary syntax highlighting of ipythonrc files, including
warnings about broken comments
commands for editing the ipythonrc file and .ipython directory
built in help
access from a single key binding.
The bundle can be downloaded from GitHub or installed via GetBundles. For
installation help, see the README.
We’d love to hear your feedback, so please send comments, suggestions
and feedback to either the ipython-dev list (please prefix the subject
with [TextMate]), or the [ipython-tmbundle google group](http://groups.google.com/group/ipython-tmbundle/ “ipython-tmbundle |
Google Groups”) (just reply to
this email).
I had so much fun making my previous screencast, on installing the Gnuplot TextMate bundle, that I decided to make another one. This one is about using the bundle. It includes info on snippets and commands, as well as the TM_GNUPLOT variable I introduced. Setting this variable allows you to choose the gnuplot executable.
Please leave your comments below, and I’ll try to address them.
Update: as Dunc points out below, you’ll need to enable the unstable repositories in fink. You can do this by running fink configure, and telling it to enable unstable access.
Hi, this is Matt Foster's blog / website.
You can find out more about me in the about section, or have a look at my other online haunts in the more me section below.