Skip to content

Conversation

@IllusionMan1212
Copy link
Contributor

This PR addresses issue #56 (partially? not sure about the truncation part).

Lines should wrap according to the width of the viewport. resizes can be handled by the user easily by updating the viewport width when tea.WindowSizeMsg is fired.

@muesli muesli added the enhancement New feature or request label Oct 5, 2022
@meowgorithm
Copy link
Member

meowgorithm commented Oct 19, 2022

In order for this to be merged text will need to be to reflowed (that is, re-wrapped) on resize. We'll want to pay special attention to how both the active line and viewport position is maintained, as best as possible, post-resize/re-wrap.

Additionally, I'd prefer to wait to merge this feature until muesli/reflow#43 is fixed upstream so as to mitigate duplicate reports on that issue in this repo.

@bashbunni bashbunni added this to the viewport milestone Jan 23, 2025
@caarlos0
Copy link
Member

this should be fixed on main/v2-exp!

thanks for the PR though!

@caarlos0 caarlos0 closed this Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants