WIP: Add keybinding to open buffers under cursors

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-01-07 16:12:50 +01:00
parent cf62d26ed8
commit 3cab32d201
7 changed files with 70 additions and 15 deletions

View file

@ -561,7 +561,7 @@ impl Workspace {
let project_path = project_path.await.ok()?;
if fs.is_file(&abs_path).await {
if let Some(entry) =
this.update(&mut cx, |this, cx| this.open_entry(project_path, cx))
this.update(&mut cx, |this, cx| this.open_path(project_path, cx))
{
return Some(entry.await);
}
@ -665,7 +665,7 @@ impl Workspace {
}
#[must_use]
pub fn open_entry(
pub fn open_path(
&mut self,
project_path: ProjectPath,
cx: &mut ViewContext<Self>,