pub fn open(editor: &Editor, path: &Path) -> Result<()>
Open the given file in the editor. Blocks until the editor exits.