# Fix cmd-n in the project panel context menu and bind global workspace actions \(\#3491\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c9dd6b879c710762a61296823502fa7ee3ef8b58

Requested commit: c9dd6b879c710762a61296823502fa7ee3ef8b58

Commit: c9dd6b879c710762a61296823502fa7ee3ef8b58

Tree: 1e1ec74fed6fea7db403d2ea1636d6a4519477d7

Author: Nathan Sobo

Committer: GitHub

## Message

```
Fix cmd-n in the project panel context menu and bind global workspace actions (#3491)

This PR binds the `workspace::NewFile` action only in the `Workspace`
context. It previously was bound globally, which caused us to hijack the
`cmd-n` binding when the context menu was visible in the project panel.
In the process, we also added some other global workspace actions and
move some other global bindings to be bound only on `Pane` and
`Workspace`.

Release Notes:

- N/A
```

## Parents

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

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

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