I dream of Coda providing a “system” table representing the current doc, with one row per page or sub-page, and the columns being the page properties.
All columns could be modified, allowing dynamic renaming, visibility change, reordering in the table of content, etc. Pages could be created or deleted on the fly with the usual AddRow() and DeleteRows(). The page content could be simply a canvas column.
Bonus: Locking and access could be managed per page, with People columns for full access, read only etc.
This would bring next-level doc making, by enabling the doc structure to be customised on the fly. I’m aware this probably requires substantial changes under the hood – for Coda 4.0, maybe?