There's a growing need for an API for emphasizing text in the editor view. This has already been implemented for bracket pair highlighting (#186), but should be separated from the bracket pair code and made into a public API.
Some things that will use this API:
Search in file
Project find (CE, when selecting a find navigator search result)
When changing font size the number of lines in the viewport may change if the difference in size is large enough. This causes lines to be displayed, but layout regeneration is not caused until something like a scroll action occurs.
To Reproduce
Open a document
Change the font size to something large (20)
Change the font size to something small (4)
Observe that there are lines visible with the previous font size.
Expected Behavior
Changing the font size should cause layout for all visible lines.
Version Information
CodeEditTextView: main (40d8e88)
macOS: 13.6.1
Xcode: 15.0
If selecting text beyond bottom of the text view viewport with โงโพ, the scroll isn't immediately adjusted to show the bottom of the selected text until selected a few more lines after that point.
To Reproduce
Select some text beyond the bottom of the viewport with โงโพ.
Notice scroll position isn't updated until pressing it a few more times.
Expected Behavior
The scroll should be update after the partial or complete line below the viewport is selected.
Is your feature request related to a problem? Please describe.
We should be able to find strings of text in a document and browse different occurrences.
When window or pane is inactive, the textview does not handle inactive state.
Insertion point should be hidden
Selection background if any should change color to a more gray color
To Reproduce
Click out of window so it is inactive
Notice insertion point is still visible or text selection background color is still the same
Expected Behavior
When inactive (either the window or the instance of the text view not in focus if there are multiple present), the insertion point should be hidden and the text selection background color should be more gray (see Xcode for reference)
Add an option to have selections follow the Web style. That is, selections don't select the entire visible line if the line is selected. Selection rects only follow text rects.
Cursors right now share a timer. If the editor is unfocused the cursors stop blinking, but if another editor is focused all editor's cursors begin to blink.
The cursor blink timer needs to be attached to a TextView instead of a global timer.
The emphasis background color is yellow. The text should be black regardless of the users color scheme to be visible on this background. Currently, when the user has a light color scheme set, it is black as expected, however the text color is white when the user has a dark color scheme set.
Expected Behavior
The emphasis text color should be black regardless of color scheme so that it is visible on the yellow background.
Is your feature request related to a problem? Please describe.
In the enhancement requested by CodeEditApp/CodeEdit#868, the request to add configurable indentation to wrapped lines is beyond the current capabilities of CodeEditTextView.
Describe the solution you'd like
Add a parameter or option which allows custom indentation to be added for wrapped lines. May require enhancement + PR in STTextView