zed
zed copied to clipboard
ProjectPanel support `workspace::ActivatePaneIn*`
Check for existing issues
- [X] Completed
Describe the feature
I want workspace::ActivatePaneIn*
to also penetrate (work on) the ProjectPanel, Is there already some way to make it work?
{
// global mode
"bindings": {
"shift-cmd-j": "workspace::ToggleZoom",
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"]
}
}
If applicable, add mockups / screenshots to help present your vision of the feature
No response
VSCode allows moving up and down using bindings in the file tree as well. I would like the same for the Zed Left Dock.
workaround keybind
{
"context": "ProjectPanel && not_editing",
"bindings": {
"ctrl-l": "project_panel::ToggleFocus"
}
}
I had to do something like this to work properly, because once I was in the terminal, it did not change the Pane and sometimes when I was in the ProjectPanel moving to the right direction would not work. Doing something like this makes everything work as expected.
{
{
"bindings": {
"ctrl-w ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-w ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-w ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-w ctrl-j": ["workspace::ActivatePaneInDirection", "Down"]
}
},
{
"context": "Terminal",
"bindings": {
"ctrl-w ctrl-k": "workspace::ActivateNextPane"
}
},
{
"context": "ProjectPanel",
"bindings": {
"ctrl-w ctrl-l": "workspace::ActivateNextPane"
}
}
}