Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: charmbracelet/lipgloss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.11.0
Choose a base ref
...
head repository: charmbracelet/lipgloss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.12.1
Choose a head ref
  • 16 commits
  • 30 files changed
  • 6 contributors

Commits on May 24, 2024

  1. feat: trees and lists (#264)

    * feat: implement list renderer
    
    * feat: data model for list
    
    * feat: add Offset, Height, Indent
    
    * feat: tree renderer
    
    * fix: list example
    
    * test: last tree node is a subtree
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * fix: tree
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * fix: lint
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * docs: example
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * test: inc cov
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * fix: multiline items
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * feat: one approach to sublists
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * fix: tree improvements
    
    * wip
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * wip
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * wip
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * wip
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * fix: prevent having to pass renderer to all trees
    
    * test: force linux line endings
    
    * fix: windows
    
    * fix: lint issues
    
    * fix: ignore lint issue failing forever
    
    * fix: renames
    
    * fix: renderer
    
    * ci: fix coveralls hopefully
    
    * wip
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * fix: style
    
    * docs: update
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * fix: renderer
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * test: cover with tests
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * feat: more list enumerators
    
    * fix: drop renderer api
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * feat: improve api
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * fix: prealloc
    
    * fix: clean up
    
    * fix: list setup
    
    * fix: improve sublist tests
    
    * fix: improve sublists
    
    * refactor: simplify
    
    * docs: more examples, readme updates
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * docs: readme
    
    * fix: set item style
    
    * fix(tree): do not use golden files
    
    * test: do not use golden files
    
    * refactor: remove unused code
    
    * feat: hide nodes
    
    * feat: filter
    
    * fix: allow fmt.Stringer
    
    * test: table within a tree
    
    * docs: update
    
    * fix: rename atter to data
    
    * test: test public api only
    
    * docs: sublist with table example
    
    * docs: update example
    
    * fix: lint issues
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * docs: update examples
    
    * docs: update
    
    * feat: offset
    
    * feat: offsetstart && offsetend
    
    * fix: remove last from enumerator
    
    * refactor: make tree more explicit
    
    * `New()` now take no args
    * added a new `Root(string)` method
    * added a new `Items(...any)` method
    
    * refactor: improve list
    
    * docs: fix examples
    
    * test: ensure embed lists in trees
    
    * docs: sublist example with list as tree node
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * refactor: first pass at examples cleanup
    
    * refactor: first pass at examples cleanup
    
    * fix: support multi-line prefixes
    
    * test: more glow-style lists within trees
    
    * docs: simplify examples
    
    * fix: improve handling of different types
    
    * chore: go mod tidy
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * fix: code review suggestions
    
    Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
    Co-authored-by: bashbunni <15822994+bashbunni@users.noreply.github.com>
    
    * fix: apply code review suggestion
    
    * feat(tree): rounded enumerator (#280)
    
    * chore(examples): go mod tidy
    
    * feat(tree): add rounded corner enumerator
    
    * test: rounded enumerator test
    
    * docs: readme updates
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * docs: readme updates
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * chore: fmt
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * docs: godoc
    
    * docs: godoc
    
    * fix: bash's issue
    
    * fix: bad example
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    
    * docs: improve godoc for trees and lists (#296)
    
    * docs(godoc): add overview
    
    * docs(godoc): include examples in godoc
    
    * docs(godoc): fix roman numerals example
    
    * docs(godoc): fix tree examples
    
    * docs(godoc): attempt to fix list Enumerator examples
    
    * docs: added some examples to godoc
    
    * fix(list): New(items...) with sublist
    
    * docs: update examples
    
    * chore(tree): improve var names in rounded example
    
    * fix: use padding instead of margin to better styles
    
    * fix: lint
    
    ---------
    
    Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
    Co-authored-by: Maas Lalani <maas@lalani.dev>
    Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
    Co-authored-by: bashbunni <15822994+bashbunni@users.noreply.github.com>
    Co-authored-by: Christian Rocha <christian@rocha.is>
    5 people authored May 24, 2024
    4 Configuration menu
    Copy the full SHA
    d21c576 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. Tree API Changes (#307)

    * refactor: clean tree_test.go
    
    * refactor: remove subtests
    
    * refactor: rename `Data` to `Items` for `Lists` and `Children` for `Trees`
    
    * chore: support only NodeData
    
    * fix: enumerations -> enumerators for consistency
    
    * fix: item -> children
    
    * fix: use l for List, rather than n
    
    * fix: move list Enumerator definition to enumerator.go
    
    * fix: list enumerator comments
    
    * docs: add package documentation
    
    * fix: examples
    
    * feat: split enumerator and indenters
    
    * docs: add comments
    
    * refactor: package comment
    
    * docs: use more tree terminology
    
    * docs: refactor indentor comments
    
    * fix: lint
    maaslalani authored May 30, 2024
    Configuration menu
    Copy the full SHA
    1afeca0 View commit details
    Browse the repository at this point in the history
  2. chore: remove deprecated Copy() calls (#306)

    Co-authored-by: Maas Lalani <maas@lalani.dev>
    meowgorithm and maaslalani authored May 30, 2024
    Configuration menu
    Copy the full SHA
    70c908d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6e07abb View commit details
    Browse the repository at this point in the history

Commits on May 31, 2024

  1. Configuration menu
    Copy the full SHA
    878d31f View commit details
    Browse the repository at this point in the history
  2. fix(tree): examples

    meowgorithm committed May 31, 2024
    Configuration menu
    Copy the full SHA
    e54d9dd View commit details
    Browse the repository at this point in the history
  3. feat: deprecate Style.ColorWhitespace

    You can get the exact same effect with margins and padding.
    meowgorithm committed May 31, 2024
    Configuration menu
    Copy the full SHA
    7838b4e View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. chore(ci): also build examples (#310)

    * chore(ci): also build examples
    * fix(examples): fix tree styles example
    * fix: ssh examples dependencies
    * chore: use creack/pty
    * chore(examples): update deps
    * chore(examples): bump examples (and ci) to 1.19 so a slog dep will build
    
    ---------
    
    Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
    meowgorithm and aymanbagabas authored Jun 4, 2024
    Configuration menu
    Copy the full SHA
    bbd02ab View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2024

  1. Configuration menu
    Copy the full SHA
    33b3263 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. chore: update CODEOWNERS

    meowgorithm committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    5a82e41 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. chore: bump x/ansi to v0.1.3

    Fixes: #324
    aymanbagabas committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    e6edbac View commit details
    Browse the repository at this point in the history
  2. feat(ci): use goreleaser for releases (#301)

    * feat(ci): use goreleaser for releases
    
    This will publish and announce releases on tag push.
    
    * chore: remove announce
    aymanbagabas authored Jul 10, 2024
    1 Configuration menu
    Copy the full SHA
    9564423 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Drop Tree (#330)

    * fix: move tree to internal
    
    * feat: tree indenter on lists
    
    * fix: sublist example
    
    * fix: remove tree
    maaslalani authored Jul 11, 2024
    Configuration menu
    Copy the full SHA
    2a67670 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6348d59 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. chore: upgrade x/ansi to v0.1.4

    Fixes: #332
    aymanbagabas committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    1b3672b View commit details
    Browse the repository at this point in the history
  2. chore: retract v0.11.1

    aymanbagabas committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    670898d View commit details
    Browse the repository at this point in the history
Loading