[WIP Use file views when opening editior

WIP Please don't merge.

Fixes editor in different file views, lays groundwork for public preview

Known bugs:
 - [ ] Breadcrumb not restored on exit