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

Replace textUt.ttyWidth = width with a more fine-grained control #238

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

c-blake
Copy link
Owner

@c-blake c-blake commented Nov 2, 2024

Replace textUt.ttyWidth = width with a more fine-grained control mechanism of wrapDoc, wrapTable. Special values of 0 mean the old auto-terminal-width wrapping, -1 means never wrap at all, and other values mean to wrap at that column (including indent). Update both config file parsers to allow CLusers to tweak settings.

Update test/PassValuesMulti.nim with some example code showing 4 different wrap columns in play. Update reference output in light of both cligen.nim edits and new PassValuesMulti help output. Also update RELEASE_NOTES.md with details for CLauthors and revert the description (& implementation) of var ttyWidth in textUt.nim since it is less general.

mechanism of `wrapDoc`, `wrapTable`.  Special values of `0` mean
the old auto-terminal-width wrapping, `-1` means never wrap at all,
and other values mean to wrap at that column (including indent).
Update both config file parsers to allow CLusers to tweak settings.

Update `test/PassValuesMulti.nim` with some example code showing 4
different wrap columns in play.  Update reference output in light of
both `cligen.nim` edits and new `PassValuesMulti` help output.  Also
update RELEASE_NOTES.md with details for CLauthors and revert the
description (& implementation) of `var ttyWidth` in `textUt.nim`
since it is less general.
@c-blake c-blake merged commit b09fe8d into master Nov 3, 2024
12 checks passed
@c-blake c-blake deleted the addFineGrainedWrapControl branch November 3, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant