You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve Editor Configuration, Rename to SourceEditor (CodeEditApp#336)
### Description
Improved the organization of our editor's configuration options by
organizing them into a separate type from the SwiftUI API. This type is
further organized into four structs based on the configuration option's
effect on the editor.
#### Detailed Changes
- Creates a new `SourceEditorConfiguration` struct.
- Passed to `CodeEditSourceEditor` and `TextViewController` to update
configuration.
- One single object for all configuration that doesn't usually change
during editing (no state is stored here).
- Has an efficient method for updating the editor for a new
configuration (moved from `CodeEditSourceEditor`'s SwiftUI update method
to `SourceEditorConfiguration`).
- Organized into four categories: appearance, behavior, layout, and
peripherals. Each has it's own documentation.
- Adds a new API for toggling the gutter view.
- Renames `CodeEditSourceEditor` to `SourceEditor` (requested by
@austincondiff).
- Updates docc docs to reflect new API.
- Updates README to reflect new API (as well as a few missing/broken
links).
I found a small bug with the refactor guide while making these changes.
I may move them out of this PR.
### Related Issues
* closesCodeEditApp#115
* closesCodeEditApp#319
### Checklist
- [x] I read and understood the [contributing
guide](https://github.com/CodeEditApp/CodeEdit/blob/main/CONTRIBUTING.md)
as well as the [code of
conduct](https://github.com/CodeEditApp/CodeEdit/blob/main/CODE_OF_CONDUCT.md)
- [x] The issues this PR addresses are related to each other
- [x] My changes generate no new warnings
- [x] My code builds and runs on my machine
- [x] My changes are all related to the related issue above
- [x] I documented my code
### Screenshots
N/A no content changes
0 commit comments