Limit the number of chars of commands in the output and allow them to be expanded
Categories
(DevTools :: Console, enhancement, P3)
Tracking
(firefox76 fixed)
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: samarsault, Mentored)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 2 obsolete files)
Feedback from https://bugzilla.mozilla.org/show_bug.cgi?id=1133849#c22
When building a long script in editor mode, the user will probably evaluate the wip script a lot, cluttering the console output along the way.
We could only show the first N characters of a console command in the console output, with the ability to expand it if needed.
Comment 1•4 years ago
|
||
Reporter | ||
Comment 3•3 years ago
|
||
Thanks Samarjeet, the bug is now yours :)
Don't hesitate to ask any question you have!
Till where should I display the code. There are two choices:
- Up till the first new line
- Up till some n characters. In this case, what should be n?
Also, does there an existing control available to expand blocks of text in the devtools codebase?
Comment 5•3 years ago
|
||
The first line is probably the most manageable heuristic (I could also see us trying out -webkit-line-clamp
, in case want multiple lines).
The twisty for expand/collapse in stacks and trees could be used here. Inspector uses twisties and a ...
button inside an element. I am not aware of any "truncated text" UX in other places.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b3fb938012ba Limit characters & allow multiline code to be expanded r=nchevobbe
Comment 10•3 years ago
|
||
bugherder |
Comment 11•3 years ago
|
||
Added a paragraph about this feature to the Multi-line mode section of the interpreter article.
Updated•1 year ago
|
Description
•