chore(deps): update module github.com/charmbracelet/lipgloss to v1.1.0 #238
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.0.0
->v1.1.0
Release Notes
charmbracelet/lipgloss (github.com/charmbracelet/lipgloss)
v1.1.0
Compare Source
Tables, Improved
In this release, the @andreynering and @bashbunni majorly overhauled on the table sizing and content wrapping behavior. Tables will now be much smarter on deciding the ideal width of each column, and content will now wrap by default inside cells.
If you don't want content to wrap, set
.Wrap(false)
, and the content will be cut with an ellipsis (…
), a behavior the was not properly working correctly before (content would just be cut, even middle word).New Border Styles
Also, we added two new border styles that you can use to generate tables in Markdown and ASCII styles.
Markdown Tables
To render tables correctly for Markdown you'll want to use
lipgloss.MarkdownBorder
and disable the top and bottom borders.ASCII Tables
To render an ASCII-style table use
lipgloss.ASCIIBorder
.Thanks everyone
Special thanks to
@aymanbagabas
@bashbunni
and@andreynering
or all the work on this release!Changelog
New Features
7862f52
: feat(table): improve sizing and behavior: wrap by default, overflow optionally (@andreynering)1f1209e
: feat(table): use cellbuf to preserve styles for wrapped content (@bashbunni)c454a0a
: feat(tables): add markdown and ascii border style for tables (#480) (@andreynering)bafb8fd
: feat(tree): hide children (#460) (@bashbunni)9942166
: feat: style ranges (#458) (@caarlos0)Bug fixes
9500f10
: fix(table): ensure we're passing the right row index tostyleFunc
(@andreynering)7b191c5
: fix(test): make table wrapping tests use golden files (@bashbunni)9b8304f
: fix: border size getters when implicit borders are present (#411) (@meowgorithm)022e967
: fix: range test (@caarlos0)Other work
ecc1bd0
: fix: comment on min func in utils (@derezzolution)5cd2074
: style(table): improve naming of the resizer functions (@andreynering)9cfb7dd
: test(table): check truncation logic for overflow and nowrap (@bashbunni)2aa2eb0
: test(table): test wrapping cell styles (@bashbunni)ca67d0f
: chore(lint): apply De Morgans law to the if statement (@aymanbagabas)0fbb070
: chore(lint): fix lint ignore comments (@andreynering)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.