Refactor terminal highlights and open mechanisms
Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
91ba80ae98
commit
75d900704e
3 changed files with 19 additions and 7 deletions
|
@ -392,6 +392,10 @@ impl TerminalElement {
|
|||
|
||||
let mut region = MouseRegion::new::<Self>(cx.view_id(), 0, visible_bounds);
|
||||
|
||||
// 1. Get file:linenumber syntax working ✔️
|
||||
// 2. Switch terminal to look for word boundaries, on cmd-hover
|
||||
// 3. Send those query strings to the resolver thing above
|
||||
|
||||
// Terminal Emulator controlled behavior:
|
||||
region = region
|
||||
// Start selections
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue