# editor: Extract \`git\` and \`input\` out of \`editor.rs\` \(\#56155\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6aca6364fefd5334f9b0b7ca8143ce5380480c95

Requested commit: 6aca6364fefd5334f9b0b7ca8143ce5380480c95

Commit: 6aca6364fefd5334f9b0b7ca8143ce5380480c95

Tree: 3de72a9736b3f5a5f57d30ee8e3a2c8f9d33e852

Author: Mikhail Pertsev

Committer: GitHub

## Message

```
editor: Extract `git` and `input` out of `editor.rs` (#56155)

cc @SomeoneToIgnore

## Summary

Follow-up to https://github.com/zed-industries/zed/discussions/55352,
where the conclusion was to split `editor.rs` incrementally by topic
instead of all at once.

This mechanically extracts two editor topics into focused sibling
modules:

- `crates/editor/src/input.rs`
- `crates/editor/src/git.rs`

The git extraction is intentionally partial for now. I left a lot of
related parts because otherwise the diff was super huge (over 9K lines)
in the Github, so we can move those parts later in the follow-up PRs
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

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

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