@@ -159,6 +159,16 @@ impl Component for Picker {
160 return close_fn;
160 return close_fn;
163+ code: KeyCode::Enter,
166+ let size = cx.editor.view().unwrap().size;
167+ if let Some(path) = self.selection() {
168+ cx.editor.open(path.into(), size);
163 match self.prompt.handle_event(event, cx) {
173 match self.prompt.handle_event(event, cx) {
164 EventResult::Consumed(_) => {
174 EventResult::Consumed(_) => {