https://github.com/zed-industries/zed/issues/20483 would be nice to have this. maybe I can do this myself

check others. how they are made esp
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.https://github.com/jellydn/zed-101-setup
do
⏺ Yes, you can use these actions for deterministic pane navigation:
Directional pane activation:
- workspace::ActivatePaneRight - Go to pane on the right
- workspace::ActivatePaneLeft - Go to pane on the left
- workspace::ActivatePaneUp - Go to pane above
- workspace::ActivatePaneDown - Go to pane below
Cycle through panes:
- workspace::ActivateNextPane - Next pane (cycles)
- workspace::ActivatePreviousPane - Previous pane
Add to your ~/.config/zed/keymap.json:
[
{
"context": "Workspace",
"bindings": {
"cmd-alt-right": "workspace::ActivatePaneRight",
"cmd-alt-left": "workspace::ActivatePaneLeft",
"cmd-alt-up": "workspace::ActivatePaneUp",
"cmd-alt-down": "workspace::ActivatePaneDown"
}
}
]
Or if you prefer vim-style:
[
{
"context": "Workspace",
"bindings": {
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-l": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-j": "workspace::ActivatePaneDown"
}
}
]
The directional commands (ActivatePaneRight, etc.) are deterministic - they move focus to the pane in
that specific direction relative to the current pane.