Sidebar nav: keep cursor & selection in sync with file being edited