# Exit early on mutating actions in readonly editor \(\#54758\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 872faf0a7bb2f79ef5180f284ee80df97ef39b3b

Requested commit: 872faf0a7bb2f79ef5180f284ee80df97ef39b3b

Commit: 872faf0a7bb2f79ef5180f284ee80df97ef39b3b

Tree: e554f690c7f4adf7f4b6f846ba3e306a84ef9e42

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Exit early on mutating actions in readonly editor (#54758)

Hides and disables all mutating editor actions for readonly editors.

Certain actions (as cmd-backspace mentioned in the issue) could be
somewhat beneficial to have for navigation purposes, but we'd better
shape that story properly, let's build a "harness" and disable the
mutating ones first.

Closes https://github.com/zed-industries/zed/issues/47333

Release Notes:

- Fixed readonly editor having certain mutation actions enabled
```

## Parents

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

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