Collapse / Expand command rows in Table view

Hi there. Would it be possible to have a way to collapse specific rows in the Table view?

As a newbie I would like to be able to collapse all commands that I tested and focus only on specific sections of the table view.

Thanks in advance