diff --git a/crates/file_finder/src/new_path_prompt.rs b/crates/file_finder/src/new_path_prompt.rs index 206545f5b4acdeee824a1a432d07576cd8bf609d..2d5be8dae12ec2e540ea32b08fbd750b8ef6dc0c 100644 --- a/crates/file_finder/src/new_path_prompt.rs +++ b/crates/file_finder/src/new_path_prompt.rs @@ -248,7 +248,10 @@ impl PickerDelegate for NewPathDelegate { query: String, cx: &mut ViewContext>, ) -> gpui::Task<()> { - let query = query.trim().trim_start_matches('/'); + let query = query + .trim() + .trim_start_matches("./") + .trim_start_matches('/'); let (dir, suffix) = if let Some(index) = query.rfind('/') { let suffix = if index + 1 < query.len() { Some(query[index + 1..].to_string())