@@ -1190,7 +1190,11 @@ fn goto_file_impl(cx: &mut Context, action: Action) {
11901190 for sel in paths {
11911191 let p = sel.trim();
11921192 if !p.is_empty() {
1193− if let Err(e) = cx.editor.open(&PathBuf::from(p), action) {
1193+ let path = Path::new(p);
1194+ if path.is_dir() {
1195+ let picker = ui::file_picker(path.into(), &cx.editor.config());
1196+ cx.push_layer(Box::new(overlaid(picker)));
1197+ } else if let Err(e) = cx.editor.open(path, action) {
11941198 cx.editor.set_error(format!("Open file failed: {:?}", e));
11951199 }
11961200 }
@@ -2603,6 +2607,7 @@ fn file_picker_in_current_buffer_directory(cx: &mut Context) {
26032607 let picker = ui::file_picker(path, &cx.editor.config());
26042608 cx.push_layer(Box::new(overlaid(picker)));
26052609}
2610+
26062611fn file_picker_in_current_directory(cx: &mut Context) {
26072612 let cwd = helix_loader::current_working_dir();
26082613 if !cwd.exists() {