# Improve JetBrains keymap for dock toggling \(\#35234\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8207621a4a594dd3d8634b594039df468577636e)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8207621a4a594dd3d8634b594039df468577636e

Requested commit: 8207621a4a594dd3d8634b594039df468577636e

Commit: 8207621a4a594dd3d8634b594039df468577636e

Tree: ccfc938f3a3d438634d6c863be3ed409cbe1c6ea

Author: Peter Tripp

Committer: GitHub

## Message

```
Improve JetBrains keymap for dock toggling (#35234)

Follow-up to: 
- https://github.com/zed-industries/zed/pull/34641
- https://github.com/zed-industries/zed/pull/35230

This improves Zed's behavior with the Jetbrains keymap for toggling
specific docks/sidebars with cmd-0 thru cmd-9 (macos) and alt-0 thru
alt-9 (linux). Added in
https://github.com/zed-industries/zed/pull/34641. Additionally, this
also maps `ctrl-b` / `ctrl-alt-`b to their JetBrains equivalents
(`editor::GoToDefinition` and `editor::GoToDefinitionSplit`) instead of
the default vscode-compatable behavior (toggle left / right dock). This
is because we those specific toggles and a default Hide keyboard
shortcut (`shift-escape`) added in
https://github.com/zed-industries/zed/pull/35230.

Thanks to @thomaseizinger for raising this in:
-
https://github.com/zed-industries/zed/discussions/34643#discussioncomment-13856746

Release Notes:

- Improve support keyboard-based dock show/hide in Jetbrains keymap.
```

## Parents

- [ab90ed41da47262bb839744e284fd3013b8e16bc](https://git.cafe/gitcafe/zed/commit/ab90ed41da47262bb839744e284fd3013b8e16bc?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8207621a4a594dd3d8634b594039df468577636e?format=markdown)
