# editor: Extract \`edit_prediction\` and \`clipboard\` out of \`editor.rs\` \(\#56927\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f7ca86e6eeabd135645c4f25aa1ae83f5cf0231b

Requested commit: f7ca86e6eeabd135645c4f25aa1ae83f5cf0231b

Commit: f7ca86e6eeabd135645c4f25aa1ae83f5cf0231b

Tree: f6e3813d40dbc7f77d2d3201ff938e154de5cc1e

Author: Mikhail Pertsev

Committer: GitHub

## Message

```
editor: Extract `edit_prediction` and `clipboard` out of `editor.rs` (#56927)

cc @SomeoneToIgnore

## Summary

Follow-up to [this
discussion](https://github.com/zed-industries/zed/discussions/55352#discussioncomment-16919854).
This extracts the edit prediction and clipboard code from `editor.rs`
into `edit_prediction.rs` and `clipboard.rs`.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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