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
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
@austincondiff@thecoolwinter Hi! I'm still in progress.
I'm trying to find the easiest way to implement this logic. I found this PR with TextLayoutManagerRenderDelegate, but the current TextView doesn't use this (only MinimapView). Am I right to add the realisation of the TextLayoutManagerRenderDelegate protocol to the TextView?
@austincondiff@thecoolwinter Hi! I'm still in progress.
Am I right to add the realisation of the TextLayoutManagerRenderDelegate protocol to the TextView?
Not quite, that protocol is to allow developers to override layout or rendering behavior. CETV handles that by default but in the minimap's case it overrides how text is drawn (little dots).
Three places to look:
LineFragmentRenderer does the actual drawing of the text in a graphics context. This will need to be modified to draw the indented fragments correctly.
Typesetter determines line breaks - you'll want to modify this one to allow less width for line fragments that should be indented, which will change where line breaks occur.
LineFragment will need to know about any indentation and adjust to account for that for instance when determining the content offset of an X coordinate in the fragment.
Hey @Bogdan-Belogurov and @thecoolwinter, not sure of the progress on this but if it has stalled I can take it. Could commit a few hours over the next two days + more this upcoming week.
@vksvicky I would say go for it. I never heard back from them when I asked and by now I don’t have much free time at the moment to put anything toward it.
Activity
[-]Add support for indenting wrapped lines[/-][+]✨ Add support for indenting wrapped lines[/+]Merge pull request #18 from lukepistrol/main
[-]✨ Add support for indenting wrapped lines[/-][+]✨ Indent wrapped lines[/+]Bogdan-Belogurov commentedon Jun 3, 2025
@thecoolwinter Hi! Can I take this one?
austincondiff commentedon Jun 14, 2025
@Bogdan-Belogurov Where are we with this? No rush, just checking.
Bogdan-Belogurov commentedon Jun 17, 2025
@austincondiff @thecoolwinter Hi! I'm still in progress.
I'm trying to find the easiest way to implement this logic. I found this PR with
TextLayoutManagerRenderDelegate, but the currentTextViewdoesn't use this (onlyMinimapView). Am I right to add the realisation of theTextLayoutManagerRenderDelegateprotocol to theTextView?thecoolwinter commentedon Jun 19, 2025
Not quite, that protocol is to allow developers to override layout or rendering behavior. CETV handles that by default but in the minimap's case it overrides how text is drawn (little dots).
Three places to look:
LineFragmentRendererdoes the actual drawing of the text in a graphics context. This will need to be modified to draw the indented fragments correctly.Typesetterdetermines line breaks - you'll want to modify this one to allow less width for line fragments that should be indented, which will change where line breaks occur.LineFragmentwill need to know about any indentation and adjust to account for that for instance when determining the content offset of an X coordinate in the fragment.alechash commentedon Aug 1, 2025
Hey @Bogdan-Belogurov and @thecoolwinter, not sure of the progress on this but if it has stalled I can take it. Could commit a few hours over the next two days + more this upcoming week.
Thanks, let me know!
vksvicky commentedon Jan 31, 2026
Is anyone working on this? I can pick it up and have a look!
alechash commentedon Jan 31, 2026
@vksvicky I would say go for it. I never heard back from them when I asked and by now I don’t have much free time at the moment to put anything toward it.
vksvicky commentedon Feb 1, 2026
@alechash please assign this to me, so I can change the status and add relevant notes as I progress
alechash commentedon Feb 1, 2026
@vksvicky I cannot assign this issue. Would need to come from @thecoolwinter.
vksvicky commentedon Feb 1, 2026
Have made changes and here the pull request CodeEditApp/CodeEdit#2158