-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Text View #211
Custom Text View #211
Conversation
Removing CETiledLayer due to the fact that the layer refuses to draw fast, resulting in a laggy view when resizing that takes seconds to redraw and leaves artifacts behind while resizing.
**Needs work**
5283fbb
to
0016b1d
Compare
@matthijseikelenboom I tend to add |
This is finally ready for some review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only comment I would have is that it'd be nice to have more tests, but that's all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, great work!
I have 2 notes.
-
see requested change, this header filename isn't right.
-
there is no consistency in the header docs
In some filesCodeEditTextView
is in the header docs, in others it isn't, this is not breaking but looks a bit weird to me.
//
// FILENAME.swift
//
//
// Created by Khan Winter on 11/14/23.
//
And in others
//
// FILENAME.swift
// CodeEditTextView
//
// Created by Khan Winter on 11/14/23.
//
Co-authored-by: Wesley de Groot <[email protected]>
<!--- IMPORTANT: If this PR addresses multiple unrelated issues, it will be closed until separated. --> ### Description - Changes the package name to CodeEditSourceEditor. - Uses the new CodeEditTextView repository instead of containing two targets for the source editor and text view. - Updates all repo names, fixes all headers (thanks @0xWDG for pointing that out in #211). - Marks the `CodeEditTextView` struct as deprecated in favor of `CodeEditSourceEditor`. - Fixes a small bug with cursor position that left out column info. ### Checklist <!--- Add things that are not yet implemented above --> - [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
Description
Replaces
STTextView
with a custom TextView implementation. Creates a newTextView
andTextViewController
classes that manage rendering text, handling text input, and keybinds.TextViewController
replaces theSTTextViewController
class, connecting existing TextFormation classes, syntax highlighting, and other existing text view extensions.Related Issues
Checklist
TextView TODOs:
MacOS Sonoma cursorLeaving for future PR. Will require rework of cursor view system.--
Screenshots
// TODO