Skip to content

Update module github.com/charmbracelet/lipgloss to v0.8.0#99

Merged
koki-develop merged 1 commit intomainfrom
renovate/git.832008.xyz-charmbracelet-lipgloss-0.x
Sep 17, 2023
Merged

Update module github.com/charmbracelet/lipgloss to v0.8.0#99
koki-develop merged 1 commit intomainfrom
renovate/git.832008.xyz-charmbracelet-lipgloss-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 22, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
github.com/charmbracelet/lipgloss require minor v0.7.1 -> v0.8.0

Release Notes

charmbracelet/lipgloss (github.com/charmbracelet/lipgloss)

v0.8.0

Compare Source

Predictable Tabs

At last: tabs that render the way you want ’em to. With the new Style.TabWidth() method, you can determine exactly how a \t will render.

Before this release, Lip Gloss used to mis-measure a tab (i.e. a \t) at 0 cells wide when they actually render at different widths in different terminals (usually 8 cells, sometimes 4 cells). For these reasons, tabs are almost never what you want when designing layouts for TUIs.

With this release, a tab will get converted to 4 spaces by default—so this is a behavioral change—but you can customize the behavior as well as disable it entirely.

s := lipgloss.NewStyle()        // 4 spaces per tab, the default
s = s.TabWidth(2)               // 2 spaces per tab
s = s.TabWidth(0)               // remove tabs
s = s.TabWidth(-1)              // don't convert tabs to spaces
s = s.TabWidth(NoTabConversion) // alias of the above

You can disable the feature with Style.TabWidth(NoTabConversion) (or Style.TabWidth(-1), if you're the pedantic type).

Bug Fixes

This release also includes a bunch of bug fixes. This includes:


Full Changelog: charmbracelet/lipgloss@v0.7.1...v0.8.0


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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from koki-develop as a code owner August 22, 2023 19:26
@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (c1ef247) 75.73% compared to head (90da037) 75.73%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #99   +/-   ##
=======================================
  Coverage   75.73%   75.73%           
=======================================
  Files          12       12           
  Lines         305      305           
=======================================
  Hits          231      231           
  Misses         65       65           
  Partials        9        9           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@koki-develop koki-develop merged commit ddcec6f into main Sep 17, 2023
@koki-develop koki-develop deleted the renovate/git.832008.xyz-charmbracelet-lipgloss-0.x branch September 17, 2023 05:35
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.

2 participants

Comments