JavaScript Workspaces
One feature I wanted in Firefox 4 was a JavaScript Workspace. I know I’ve talked about it to a bunch of people. Most of the time, people looked at me like I had a chicken on my head. The concept is so simple yet hard to really convey how useful it is.
Conversations inevitably go something like, “The Console already has a command line, isn’t that good enough?”
“Well, it’s great, but a Workspace lets you write out code as you think of it and it just stays there. You don’t have to go digging through history in case you want to copy and paste it elsewhere.”
more staring as if I had a chicken on my head followed by an incomprehensible, hand-wavey discussion about what you could do with them in Smalltalk…
Anyway, I decided to create a little add-on to better illustrate the idea. It’s pretty rough right now. It has a status bar that doesn’t do anything, and it doesn’t have nice menus to let you save and load files into it. But it has all the keyboard shortcuts you’d expect in an editor (cut/copy/paste) and a context menu that lets you Execute, Inspect or Print selected code against the currently active browser tab’s content. You can open one from the Tools menu (I know, I know, I need to add an entry to the developer menu in the Firefox menu. It’s a prototype!)
Try it out, let me know what you think.
Download: http://antennasoft.net/addons/workspace.xpi
Source: https://github.com/robcee/workspace


11 Comments