# keymap: Avoid format-vs-rules collision in JetBrains overlay \(\#55364\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ea3d0f7abeb3dc5d0954d6d3fff453af5b0c7af9

Requested commit: ea3d0f7abeb3dc5d0954d6d3fff453af5b0c7af9

Commit: ea3d0f7abeb3dc5d0954d6d3fff453af5b0c7af9

Tree: ba60598abee902c2fdeee28068c71abfc24c7242

Author: Tautik Agrahari

Committer: GitHub

## Message

```
keymap: Avoid format-vs-rules collision in JetBrains overlay (#55364)

the jetbrains overlay binds `ctrl-alt-l` (linux) / `cmd-alt-l` (macos)
to `editor::Format` (jetbrains "reformat code"), which collides with the
default `agent::OpenRulesLibrary` binding. the agent panel shows the
conflicting key as the rules tooltip but pressing it formats the buffer
instead of opening rules. mirrors the windows keymap by switching the
linux/macos overlays to `shift-alt-l` in the AgentPanel context (with
the colliding key explicitly null-ed), so the hint and the action stay
in sync.

closes #49764.

Release Notes:

- Fixed the JetBrains keymap so the agent panel "Rules" entry uses
`shift-alt-l` and no longer flickers a non-functional `ctrl-alt-l` /
`cmd-alt-l` shortcut.
```

## Parents

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

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