pub fn capture(editor: &Editor) -> Option<Session>
Capture owns all paths and history; it never borrows the editor afterward.