I'd like a way to cycle through dock panels #40697
Replies: 1 comment 8 replies
-
|
this seems really interesting to me. I'm just thinking about how one could implement something like this. right now i don't think there is an action to the i was trying to come up with a way of having these same keybindings open the dock if it is currently closed, which i thought would be cool as well. but since there is no way of knowing when we are in the furthest left pane with context. the keybinding is not behaving great. (it will first open the dock regardless of which pane you are in) and i'm also pretty confident that there is not an action to cycle through the panels that are in a specific dock. you mentioned that can you send some screen shots of the key context viewer after pressing |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Similar to how we have
pane::ActivatePreviousNextItemandpane::ActivateNextItemthat can be attached to a keybinding inpanes such asEditorandTerminal, I'd like to have a way of navigating between dockpanels.I'd incorrectly thought that
panel::PreviousPanelTabandpanel::NextPanelTabserved this function, but this appears to not be the case (see discord).I do have a work-around that's too specific for my liking, is only for the first three panels (given how they're arranged in my left dock),
and doesn't get priority unless I change the prefix toedit: updated workaround based on answer below:ctrl-shift-(there may be some more context I can configure to raise the priority?){ "context": "ProjectPanel", "bindings": { "ctrl-h": "outline_panel::ToggleFocus", "ctrl-l": "git_panel::ToggleFocus", } }, { "context": "GitPanel || (GitPanel > Editor)", "bindings": { "ctrl-h": "project_panel::ToggleFocus", "ctrl-l": "outline_panel::ToggleFocus", } }, { "context": "OutlinePanel || (OutlinePanel > Editor)", "bindings": { "ctrl-h": "git_panel::ToggleFocus", "ctrl-l": "project_panel::ToggleFocus", } }Ultimately, I'd like to be able to use
ctrl-w-{h,l,j,k}to jump between regions (as is currently the default, at least in vim mode), andctrl-{h,l}to cycle through tabs in each region, including the dock panels (which is the only region I'm currently unable to map to these key bindings). It's often a lot easier for me to decide which direction to go than it is to remember a specific/unique keybinding for the destination, and while I wouldn't want things like project search, diagnostics, and language servers to be included in such panel navigation (those icons don't change the contents of the dock, despite being located right next to ones that do), it'd be intuitive for me if I could cycle through the dock panels without having to name them (especially since they can be moved between docks).Edit: This should include the bottom dock also (
TerminalandDebug).Beta Was this translation helpful? Give feedback.
All reactions