Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Console] Table helper vertical rendering #41595

Copy link
Copy link
Closed
@yoannrenard

Description

@yoannrenard
Issue body actions

Description
The usage of large Tables in console especially on small screens (like my laptop unfortunately) is not pleasant and hard to use (like the bin/console debug:validator src/ command which prints a huge table hard to read).
What do you think about having a system like mysql or postgresql have (with the "\G" terminator) that would convert the original direction output into a vertical way?

Example

+---------------+--------------------------+------------------+---------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ISBN          | Title                    | Author           | Review                                                                                                  
                                                                                                                                                                        
                                                                                                                                                                        
                                                                                                                                                                   |
+---------------+--------------------------+------------------+---------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 99921-58-10-7 | Divine Comedy            | Dante Alighieri  | The Divine Comedy describes Dante's descent into Hell with Virgil as a guide; his ascent of Mount Purgat
ory and encounter with his dead love, Beatrice; and finally, his arrival in Heaven.                                                                                     
                                                                                                                                                                        
                                                                                                                                                                   |
| 9971-5-0210-0 | A Tale of Two Cities     | Charles Dickens  | A Tale of Two Cities is Charles Dickens’s great historical novel, set against the violent upheaval of th
e French Revolution. The most famous and perhaps the most popular of his works, it compresses an event of immense complexity to the scale of a family history, with a ca
st of characters that includes a bloodthirsty ogress and an antihero as believably flawed as any in modern fiction. Though the least typical of the author’s novels, A T
ale of Two Cities still underscores many of his enduring themes—imprisonment, injustice, social anarchy, resurrection, and the renunciation that fosters renewal.  |
| 960-425-059-0 | The Lord of the Rings    | J. R. R. Tolkien | The Lord of the Rings tells of the great quest undertaken by Frodo and the Fellowship of the Ring: Ganda
lf the Wizard; the hobbits Merry, Pippin, and Sam; Gimli the Dwarf; Legolas the Elf; Boromir of Gondor; and a tall, mysterious stranger called Strider.                 
                                                                                                                                                                        
                                                                                                                                                                   |
+---------------+--------------------------+------------------+---------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Would become :

*************************** 1. row ***************************
   ISBN: 99921-58-10-7
  Title: Divine Comedy
 Author: Dante Alighieri
 Resume: The Divine Comedy describes Dante's descent into Hell with Virgil as a guide; his ascent of Mount Purgatory and encounter with his dead love, Beatrice; and fin
ally, his arrival in Heaven. 
*************************** 2. row ***************************
   ISBN: 9971-5-0210-0
  Title: A Tale of Two Cities
 Author: Charles Dickens
 Resume: A Tale of Two Cities is Charles Dickens’s great historical novel, set against the violent upheaval of the French Revolution. The most famous and perhaps the mo
st popular of his works, it compresses an event of immense complexity to the scale of a family history, with a cast of characters that includes a bloodthirsty ogress an
d an antihero as believably flawed as any in modern fiction. 
*************************** 3. row ***************************
   ISBN: 960-425-059-0
  Title: The Lord of the Rings
 Author: J. R. R. Tolkien
 Resume: The Lord of the Rings tells of the great quest undertaken by Frodo and the Fellowship of the Ring: Gandalf the Wizard; the hobbits Merry, Pippin, and Sam; Giml
i the Dwarf; Legolas the Elf; Boromir of Gondor; and a tall, mysterious stranger called Strider.

It could be a parameter to set as does setHorizontal()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.