# Fix bug preventing the assist command from working in certain keymaps \(\#2669\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6042cf928c39fb36dff000aca4826a23fd9f72e1

Requested commit: 6042cf928c39fb36dff000aca4826a23fd9f72e1

Commit: 6042cf928c39fb36dff000aca4826a23fd9f72e1

Tree: a529ad59f4964a8dccb4ff4e6f5dbddfc7ade951

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Fix bug preventing the assist command from working in certain keymaps (#2669)

Fixes: https://github.com/zed-industries/community/issues/1712

The keymaps were adding in a `"cmd-enter": "editor::NewlineBelow",`
entry in the context of `Editor`, and this was clobbering the assist
command in the assistant panel context. Zed now defines this command in
the default keymap under the context of `"context": "Editor && mode ==
full"`. All I needed to basically do was remove that command from the
keymaps. I also removed the `"cmd-shift-enter": "editor::NewlineAbove"
from the `Editor` context in those keymaps as wel, as it is also defined
in the default keymap.

Release Notes:

- Fix bug preventing the `assistant: assist` command from working in
certain keymaps
```

## Parents

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

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

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