-
Notifications
You must be signed in to change notification settings - Fork 267
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
Viewport: line wrapping #223
Comments
Hi! While automatic line wrapping is a feature we're planning on adding, for now you should always perform line wrapping manually: width := 80
wrapped := lipgloss.NewStyle().Width(width).Render(unwrapped)
viewport.SetContent(wrapped) Remember that you can get the terminal dimensions with a Wrapping very, very long lines like the one in your example will need to be done totally manually until muesli/reflow#43 is fixed upstream. |
It seems as this is the same issue as |
This is a different issue, actually. Reopening so we can track it. |
Actually, this is indeed a Glamour issue as you mentioned. Closing accordingly—thank you! |
I tried to track that down but I'm clueless what causes that.
On a terminal with not as wide as the printed string
content
the lines are not wrapped ifuseHighPerformanceRenderer = false
.When
useHighPerformanceRenderer = true
lines are wrapped.How can i achieve wrapping with
useHighPerformanceRenderer = false
?(Background: I use viewport not for the entire screen but with bubbleboxer)
The following example allows reproduction and shows how lines are not wrapped. (Rebuild with
useHighPerformanceRenderer = true
to see wrapped lines)The text was updated successfully, but these errors were encountered: