Toggle project/outline panel keybinding? #24222
Replies: 11 comments 1 reply
-
I second this, trying to do the same currently having trouble doing so |
Beta Was this translation helpful? Give feedback.
-
I was able to have a similar "Toggle" affect by having duplicate object keys: {
"context": "Workspace",
"bindings": {
"cmd-k cmd-p": "project_panel::ToggleFocus",
"cmd-k cmd-o": "outline_panel::ToggleFocus",
"cmd-k cmd-g": "git_panel::ToggleFocus",
// Docks
"cmd-k cmd-p": "workspace::ToggleRightDock",
"cmd-k cmd-g": "workspace::ToggleLeftDock",
"cmd-k cmd-b": "workspace::ToggleBottomDock",
// Pickers
"cmd-f cmd-f": "file_finder::Toggle"
}
}, Although you can't duplicate more than 1 to toggle the same positioned dock, for example if I add another @JosephTLyons Any thoughts on this? |
Beta Was this translation helpful? Give feedback.
-
I'd be hugely in favor of this. It's a super standard part of my workflow in the JetBrains IDEs. Alternatively, they also have an option for the docks where as soon as they lose focus, they hide. That would also be nice to have. I like to pop open the file explorer / git view / symbols, look for something, hit enter, and then have it disappear. |
Beta Was this translation helpful? Give feedback.
-
I'd very much like to see this. Currently, if you open one or more panels, it's pretty hard to get rid of them with keyboard actions. Webstorm/jetbrains IDEs make working with panels and popovers a breeze, because they open and close as expected when toggling them I made a similar request here #28502 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Any updates on this? I would love for this to be implemented since it is a standard nowadays in modern editors, and one of the only things holding me back from switching to Zed. |
Beta Was this translation helpful? Give feedback.
-
Also hoping for this to be prioritised! I like Zed, so I'm forced to live in a world where I have both Agent panel and Project/Git panel open at the same time most of the time, since the is no key to toggle them on/off... just focus. On that note, Would be nice with a single keybind that toggles all open panels on/off, to not have to toggle their visibility individually. |
Beta Was this translation helpful? Give feedback.
-
hey i just happened upon this will looking for something else. essentially, for example: {
"context": "Workspace",
"bindings": {
"cmd-shift-e": "project_panel::ToggleFocus",
}
},
{
"context": "ProjectPanel",
"bindings": {
"cmd-shift-e": "workspace::ToggleRightDock",
}
}, this way it's a bit of a work around. but it works just fine. |
Beta Was this translation helpful? Give feedback.
-
the issue with that is it requires focus on the dock. I'd like a single key that, regardless of where focus is, opens and closes a certain dock/panel. I'm usually focused on the Editor when I realize I need extra screen real estate. When that happens I want to press a "toggle panel" key to hide it. Not first focus the panel, then close it, then hope I get the focus back on the Editor. |
Beta Was this translation helpful? Give feedback.
-
Yes that is true. Personally rather than being an issue of not having one specific action, I think this actually highlights a larger shortcoming of the Zed context system. In VSCode the context would include something like There is no way of targeting something that specific to my knowledge in Zed unfortunately. |
Beta Was this translation helpful? Give feedback.
-
hey i just submitted #40454 which would add info on the 3 docks to the Workspace context which would allow you to target when a specific dock is open in any part of the editor. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I searched through the default keybindings and could not find anything. Currently I know we can
"project_panel::ToggleFocus"
&"outline_panel::ToggleFocus"
and others similar panels. Although In order to hide it I need a separate keybind"workspace::ToggleRightDock"
or left depending what side you have it set to.It would be nice to actually have
Toggle
options for these panels so we don't have 2 separate keys. Something like"project_panel::Toggle"
I also tried combining it with
["workspace::ToggleRightDock", "project_panel::ToggleFocus"]
to see if I could achieve the toggle behavior it doesn't allow it.Beta Was this translation helpful? Give feedback.
All reactions