ssh remoting: Fix cmd-o (#18308)
Release Notes: - ssh-remoting: Cmd-O now correctly opens files on the remote host --------- Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
fdb03d3058
commit
d33600525e
15 changed files with 80 additions and 87 deletions
|
@ -2722,11 +2722,14 @@ impl Render for ProjectPanel {
|
|||
}
|
||||
}))
|
||||
})
|
||||
.when(project.is_local_or_ssh(), |el| {
|
||||
.when(project.is_local(), |el| {
|
||||
el.on_action(cx.listener(Self::reveal_in_finder))
|
||||
.on_action(cx.listener(Self::open_system))
|
||||
.on_action(cx.listener(Self::open_in_terminal))
|
||||
})
|
||||
.when(project.is_via_ssh(), |el| {
|
||||
el.on_action(cx.listener(Self::open_in_terminal))
|
||||
})
|
||||
.on_mouse_down(
|
||||
MouseButton::Right,
|
||||
cx.listener(move |this, event: &MouseDownEvent, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue