Closed Bug 1081438 Opened 10 years ago Closed 5 years ago

Web Console Multi-line input proposal: Add a hidden pref that turn Shift-Enter to Enter, and Enter to Ctrl+Enter

Categories

(DevTools :: Console, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1519314

People

(Reporter: timdream, Unassigned)

Details

A friend of mine recently complained about the quirkiness about Firebug and I recommend him to try Fx DevTools instead. He said the one feature missing from DevTools (compare to Chrome and Firebug) is that he can't simply switch to a mode where "enter" will result plain line break, i.e. multi-line input. 

We also discovered that we are indeed allowing multi-line input, we just map the plain line break to Shift-enter instead of enter.

The conversation then turned into how this can work. To reduce the scope of the first bug, I propose we simply put a pref (instead of a button on the UI) to enable multi-line input mode, when enabled, simply map the current behavior of Shift-Enter to Enter, and Enter to Ctrl-Enter.

The code in question is here
http://dxr.mozilla.org/mozilla-central/source/browser/devtools/webconsole/webconsole.js#3978-3979

:robcee, I assume you are the go-to person for this per commit history. What do you think of the idea?
Flags: needinfo?(rcampbell)
I think the medium term (hah) plan is to generally improve the console's abilities as a repl and specifically create a multi-line area for code similar to Firebug. I think the Firebug migration issue is big enough we need a proper JS editing buffer in the toolbox.
Flags: needinfo?(rcampbell)
Product: Firefox → DevTools
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.