Live data from Hacker News

New Firefox Command Line helps you develop faster

hacks.mozilla.org

21–30 of 73 posts

Re: New Firefox Command Line helps you develop faster

#21

Neat, but "console clear" to clear struck me. A bit verbose, no? After years of "cls" (aliased on unix) I might not bother with the number of keystrokes required.

I save ESC2J to a file and my "cls" is simply another file consisting of cat file1 in my PATH. Only because sometimes printf or some other way to print ESC's might not be available. The idea of starting up X11 so I can start the super-sized code complexity experiment that calls itself "Firefox", all just to get to a command line struck me. The fact they are calling the approach at Mozilla as "responsive design" I fou…

They identified the Mozilla home page as an example of responsive design, not Firefox. The feature being demonstrated with that example was the ability to "resize" the browser window to see how a page built with "responsive design" in mind would be rendered with, say, a mobile device with a smaller screen. Pretty useful, if you ask me.

Re: New Firefox Command Line helps you develop faster

#22

Earlier quoted context omitted.

I save ESC2J to a file and my "cls" is simply another file consisting of cat file1 in my PATH. Only because sometimes printf or some other way to print ESC's might not be available. The idea of starting up X11 so I can start the super-sized code complexity experiment that calls itself "Firefox", all just to get to a command line struck me. The fact they are calling the approach at Mozilla as "responsive design" I fou…

Responsive design doesn't mean what you apparently think it does: https://en.wikipedia.org/wiki/Responsive_design

Ah! Thanks. So if I say "responsive" in relation to a computer, are people now going to think I'm talking about webpage layout?

To me, "responsive" means the amount of time between when I issue a command and when the computer has completed what I asked it to do.

Re: New Firefox Command Line helps you develop faster

#23

Neat, but "console clear" to clear struck me. A bit verbose, no? After years of "cls" (aliased on unix) I might not bother with the number of keystrokes required.

ctrl-l in most terminals will also clear the screen. Ideally they'd apply most of the features from GNU readline which IMO is the de facto source for 'standard' shortcuts on unixen.

http://www.bigsmoke.us/readline/shortcuts

Re: New Firefox Command Line helps you develop faster

#24

It would be nice if the command line supported a shell-like language that would allow you to easily parameterize and script these Firefox commands. So instead of running one command at a time, you could create files that ran commands sequentially, iteratively, etc. There could even be syntax that sets variables to the values of arbitrary JavaScript expressions (which would give you access to any DOM attribute, for ex…

TL/DR: Is it scriptable?

Re: New Firefox Command Line helps you develop faster

#25

Wow. This may make switch back to Firefox from Chrome as my develoment browser. Bravo, Mozilla!

Agreed. Very cool.

I do wish it had better integration with the web console though. It just seems strange when you pop-up the web console tab to have a JS prompt for entering javascript directly above a Browser prompt for controlling the browser.

It'd be nice if you could just go into a javascript entry mode on the browser prompt itself and see the output appear in the web console. Even something as simple as adding a javascript command where the argument passed into the command is javascript would be useful (perhaps someone could create an add-on that does this)

Re: New Firefox Command Line helps you develop faster

#26

Amazing that after all these years, the mouse, perhaps the most iconic symbol of the PC, is being ditched for just about every application.

It maybe iconic, however, it's a horrible device for pointing from the point of health and ergonomics. And even with all the improvements, I've never seen a mouse handled more accurately than a proper trackball (see Logitech M570). Of course, that depends on the user.

You don't think horrible is a bit of an exaggeration?

Re: New Firefox Command Line helps you develop faster

#27

I'm loving this. It didn't seem like the most useful feature when I first heard about it, but it seems pretty well implemented. (Using the current nightly). The pagemod and inspect commands seem super useful. I hate having to click around an inspector to find the thing I want -- "inspect #foo > h3" just seems so much easier.

I can't figure out how to expand nodes in their inspector though. I had to bring up the source to find out what selector I should use. You should be able to do it both ways.

Re: New Firefox Command Line helps you develop faster

#28

Neat, but "console clear" to clear struck me. A bit verbose, no? After years of "cls" (aliased on unix) I might not bother with the number of keystrokes required.

It's not a direct interface to the console, it's a direct interface to the browser. There is no implicit object or receiver(other than the browser) of your command so you must specify. IMO this plus being able to set up aliases is the right way to do it.

Re: New Firefox Command Line helps you develop faster

#30
And yet firebug is still the better console. Why do fancy things like tilt and this input box have priority over getting basic things like the console output under control?

Just look at this example side by side and tell me which one you prefer: http://i.imgur.com/tKr87.png

Post reply on HN