Refactor terminal highlights and open mechanisms

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Kirill Bulatov 2023-07-12 22:08:44 +03:00
parent 91ba80ae98
commit 75d900704e
3 changed files with 19 additions and 7 deletions

View file

@ -158,7 +158,13 @@ impl TerminalView {
.detach();
}
}
_ => cx.emit(*event),
Event::Open(url) => {
// Get a workspace pointer from the new() function above
// Guess for project path or url
// Either run open buffer action OR platform open depending on whatever happens
cx.platform().open_url(url);
}
_ => cx.emit(event.clone()),
})
.detach();