Adapt to bash viewport
leder11011 opened this issue · 2 comments
leder11011 commented
When I start viewing a markdown file, then it formats line end properly. But when I change the terminal size, then the line breaks are kept and not resized. I tested this on termux android app in both orientations: portrait and landscape. I can retest with sizing of desktop xterm.
Thanks for a great app!
Best regards
Gerrit
ttscoff commented
You change the terminal size while viewing a Markdown file? The line breaks are based on the terminal width at the time the document is rendered.
…-Brett
________________________________
From: leder11011 ***@***.***>
Sent: Tuesday, November 9, 2021 6:08:01 AM
To: ttscoff/mdless ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [ttscoff/mdless] Adapt to bash viewport (Issue #77)
When I start viewing a markdown file, then it formats line end properly. But when I change the terminal size, then the line breaks are kept and not resized. I tested this on termux android app in both orientations: portrait and landscape. I can retest with sizing of desktop xterm.
Thanks for a great app!
Best regards
Gerrit
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#77>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAALVWNSBMCXAGYRLPPBA23ULEFKDANCNFSM5HVEABWQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
NathanGibbs3 commented
mdless would have to implement an internal pager vs. relying on external pagers. Then it could do this via periodically checking the terminal width or via checking the same on document navigation keystrokes. Re-rendering as necessary.