Skip to content
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

allow viewport to wrap lines #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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.

4 participants