# linux: Forward ctrl-w/ctrl-e to terminal \(\#13263\) · gitcafe/zed

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

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

Visibility: public

Requested revision: aff7a83815bdc5dce4a162717391284a6e602145

Requested commit: aff7a83815bdc5dce4a162717391284a6e602145

Commit: aff7a83815bdc5dce4a162717391284a6e602145

Tree: 58ecc0a5525934a656743e8c7f662c0306f7a7bb

Author: Thorsten Ball

Committer: GitHub

## Message

````
linux: Forward ctrl-w/ctrl-e to terminal (#13263)

This fixes `ctrl-w` and `ctrl-e` not working in the terminal pane but
instead triggering Zed actions ("close pane" and "search project files"
respectively).

I've added both because I think they're pretty commonly used in
terminals, since they're default Emacs-style keybindings.

But I also didn't want to add more, since it's relatively easy for users
to define themselves which keybindings should be forwarded to the
terminal and which not.

All that's required is adding something like this to the keymap:

```json
{
  "context": "Terminal",
  "bindings": {
    "ctrl-n": ["terminal::SendKeystroke", "ctrl-n"],
    "ctrl-p": ["terminal::SendKeystroke", "ctrl-p"]
  }
}
```
cc @mikayla-maki 

Release Notes:

- N/A
````

## Parents

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

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