# editor: Refactor \`EditorMode::Full\` \(\#28546\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a2a3d1a4bd175abcb7b79a8bed1aa2f4b2380ed8

Requested commit: a2a3d1a4bd175abcb7b79a8bed1aa2f4b2380ed8

Commit: a2a3d1a4bd175abcb7b79a8bed1aa2f4b2380ed8

Tree: 5c0960684aa2766261bbce5ebd0502d37768d3d7

Author: Danilo Leal

Committer: GitHub

## Message

```
editor: Refactor `EditorMode::Full` (#28546)

This PR lightly refactors the `EditorMode::Full` exposing two new
methods: `is_full` and `set_mode`.

Motivation is to expose fields that modify the behavior when the editor
is in `Full` mode. By using is `mode.is_full()` instead of
`EditorMode::Full` we can introduce new fields without breaking other
places in the code.

Release Notes:

- N/A

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

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

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