# editor: Extract \`header\` and \`mouse\` out of \`element.rs\` \(\#57472\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 85f8bf7393660657a119ce53aef13166b4bee083

Requested commit: 85f8bf7393660657a119ce53aef13166b4bee083

Commit: 85f8bf7393660657a119ce53aef13166b4bee083

Tree: b397dc6d3c0217590d19ec89d99a2ad4ebe5f60b

Author: Mikhail Pertsev

Committer: GitHub

## Message

```
editor: Extract `header` and `mouse` out of `element.rs` (#57472)

cc @SomeoneToIgnore

## Summary

Follow-up to [this
comment](https://github.com/zed-industries/zed/discussions/55352#discussioncomment-16961889).
This extracts the buffer header and breadcrumb rendering helpers out of
`element.rs` into a `header.rs` and mouse related things to `mouse.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

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

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