Ability to colapse table groups in editor

The schema I am currently putting together is already at 1,000 lines and I’m probably only half way through it.

I have added all tables to table groups.

There is already the ability to colapse tables individually in the editor, but it would be great if we could do that for a whole group.

This might require a change to how groups work though, so instead of:

TableGroup tablegroup_name {
    table1 
    table2 
    table3
}

We could have the table definitions in the group itself:

TableGroup tablegroup_name {
    Table table1 {
        id integer
    }
    Table table2 {
        id integer
    }
    Table table3 {
        id integer
    }
}

The editor allows you to define “manual folding ranges”.
If the tables in a group are located in the same section of the editor you highlight them and on a Mac press Cmd+k+, (hold Cmd and press k then , while keeping Cmd pressed) and it will fold all the selected text, allowing you to expand and collapse large sections of the editor.

To make it easier to find the groups I add a comment at the top and include that in the folded section so it remains as an anchor to use when expanding and collapsing.

For example:

/*** Table Group ***/

Table table1 {
  id integer
}
Table table2 {
  id integer
}
Table table3 {
  id integer
}

When manually folded, becomes this

> /*** Table Group ***/ ...