Commit Graph

361 Commits

Author SHA1 Message Date
dependabot[bot]
fe12bcbae0
feat(deps): bump github.com/charmbracelet/x/ansi from 0.5.0 to 0.5.2 (#443)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.5.0 to 0.5.2.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.5.0...ansi/v0.5.2)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-21 23:57:32 +00:00
dependabot[bot]
2d5dbdafe2
feat(deps): bump github.com/charmbracelet/x/ansi from 0.4.5 to 0.5.0 (#442)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.4.5 to 0.5.0.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.4.5...ansi/v0.5.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-20 23:13:13 +00:00
Christian Rocha
9b8304fa37
fix: border size getters when implicit borders are present (#411)
* fix: border size getters when implicit borders are present

When a border style is set and no borders have been explicitly enabled
or disabled, a border is implicitly applied to all sides of the
block. Prior to this fix border size getters would incorrectly return
0 when an implicit border is set. This revision corrects that behavior.

* refactor: remove redundant conditional check

* Update get.go

* test: add border tests

Co-authored-by: @qualidafial

---------

Co-authored-by: bashbunni <15822994+bashbunni@users.noreply.github.com>
Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
Co-authored-by: bashbunni <bunni@bashbunni.dev>
2024-11-20 08:29:19 -08:00
bashbunni
f34b553405
docs: include warning about table offset (#408) 2024-11-14 10:37:40 -08:00
Carlos Alexandro Becker
2d260ce065
ci: fix goreleaser config (#435)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-11-13 12:08:56 -03:00
Christian Rocha
7e5dc18be0 docs(readme): fix typo in demo image
Closes #432. Thanks, @orhun!
2024-11-12 09:47:19 -05:00
Christian Rocha
4595743f9b docs(examples): set the base color of the layout document 2024-11-12 09:47:19 -05:00
dependabot[bot]
c2652ad0fe
feat(deps): bump github.com/charmbracelet/x/ansi from 0.4.3 to 0.4.5 (#428)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.4.3 to 0.4.5.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.4.3...ansi/v0.4.5)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 23:14:21 +00:00
dependabot[bot]
dcc20d76d4
feat(deps): bump github.com/charmbracelet/x/ansi from 0.4.2 to 0.4.3 (#427)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.4.2...ansi/v0.4.3)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 13:07:00 +00:00
Nicolas Gonzalez
adafeda2a3 docs(examples): fix incorrect romanization of bulbasaur line 2024-11-04 06:53:06 -05:00
aymanbagabas
c51613a9ce chore(ci): sync golangci-lint config 2024-10-31 16:03:06 -04:00
aymanbagabas
9d9b575fbf chore(ci): sync golangci-lint config 2024-10-31 15:56:46 -04:00
dependabot[bot]
761d265f76 feat(deps): bump github.com/charmbracelet/x/ansi from 0.4.0 to 0.4.2
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.4.0 to 0.4.2.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.4.0...ansi/v0.4.2)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-30 10:10:46 -04:00
meowgorithm
342e7b051b chore(ci): sync golangci-lint config 2024-10-25 11:55:36 -04:00
dependabot[bot]
da324b123d feat(deps): bump github.com/charmbracelet/x/ansi from 0.3.2 to 0.4.0
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.3.2 to 0.4.0.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.3.2...ansi/v0.4.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-25 10:54:26 -04:00
aymanbagabas
78fd6fd42f chore(ci): sync golangci-lint config 2024-10-25 10:53:14 -04:00
Christian Rocha
407dc3d2cf feat(ci): add lint-sync workflow 2024-10-25 10:50:15 -04:00
bashbunni
284c0c5c55
docs(list): fix list examples in godoc (#404) 2024-10-21 13:46:10 -07:00
bashbunni
d8581323b6
fix(table): include margins in cell width (#401)
* test(table): modify test to show bug

* fix(table): account for margin in cell height and width

* test(table): add sizing tests for margins and padding

* test(table): move TestSizing to another branch

* chore: tidy + force truecolor in test

* chore(lint): remove nil check on []string
2024-10-21 09:00:40 -07:00
bashbunni
80b4221fc1
chore(lint): update linter (#405)
* chore(lint): use meta repo linter

* chore(lint): delete lint-soft workflow

* chore(lint): remove golangci files
2024-10-21 08:52:56 -07:00
Christian Rocha
fa2f4b06ca docs(readme): update example screenshot with blend
Closes #388.
2024-10-18 14:16:44 -04:00
bashbunni
68ca8486fc
docs: update contributing guidelines (#396)
* docs: update contributing guidelines

* chore(lint): remove nil check on []string
2024-10-18 09:37:44 -07:00
Christian Rocha
24258b8e1a fix(examples): draw nested structure in file tree example 2024-10-17 13:39:13 -04:00
bashbunni
a5618cb034
fix(table): do not shrink table with offset (#373)
* test(table): test to show table shrinking with offset

* fix(table): do not shrink table height
2024-10-17 09:32:46 -07:00
bashbunni
9b809dc7e5
fix(examples): fix out of range error (#395) 2024-10-15 10:02:40 -07:00
bashbunni
199d3c8af8
fix(render): strip carriage returns from strings (#386)
* fix(render): strip carriage returns from strings

* test(render): add test to reproduce carriage return issues

* feat: replace \r\n with \n instead of removing \r

Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>

* test(table): add test for carriage return in cell data

---------

Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
2024-10-11 10:40:11 -07:00
Carlos Alexandro Becker
07d18419d3
docs(example): rainbow string (#96)
* docs(example): rainbow string

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: rename

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: update gamut

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* chore: go mod tidy

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* refactor: change blended colours

---------

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: bashbunni <bunni@bashbunni.dev>
2024-10-09 11:16:49 -03:00
bashbunni
f8dd5072db
fix: shared indices for first row of data and headers (StyleFunc bug) (#377)
* test(table): show differing styles between first row and headers

* fix(table): remove overlapping indices for styling rows and headers

* test(table): remove TestTableShrink; it's fixed on another branch

* docs(table): add godoc for HeaderRow const

* fix(test): use HeaderRow for table header styling
2024-10-03 10:12:42 -07:00
bashbunni
b08e7e4762
fix(table): unset data rows without causing nil pointer err (#372)
* fix(table): unset data rows without causing nil pointer err

* test(table): add ClearRows test to repro nil ptr err
2024-10-03 10:05:17 -07:00
dependabot[bot]
aff713d242 feat(deps): bump github.com/charmbracelet/x/ansi from 0.3.0 to 0.3.2
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.3.0 to 0.3.2.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.3.0...ansi/v0.3.2)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-16 21:14:42 -04:00
Samuel Wrenn
7e47d4fadd
docs(readme): fix table heading level (#364) 2024-09-16 08:36:18 -07:00
Broderick Westrope
a5492bc296
fix(table): use table height (#358)
* feat: only display rows within table height

This will remove excess rows. This does not affect the height that is
set by headers, borders, etc.

* feat: draw ellipsis for overflow

* fix: only display overflow when data exists

* fix: only display overflow when data exists

* test: define height for existing tabel unit tests

* test: add table height unit tests

* fix: handle negative available rows to render

* fix: handle height shrink with offset

* test: add table unit test

* feat: use auto table height by default

* test: remove unnecesary height from table def

* refactor(table): use … instead of ... + remove TODOs

---------

Co-authored-by: bashbunni <bunni@bashbunni.dev>
2024-09-13 17:42:03 -07:00
dependabot[bot]
12eac2c4f2 feat(deps): bump github.com/charmbracelet/x/ansi from 0.2.3 to 0.3.0
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.2.3 to 0.3.0.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.2.3...ansi/v0.3.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-12 10:49:00 -04:00
Ayman Bagabas
f5de9fd158
fix(ci): use gh_pat in build workflow 2024-08-22 17:19:21 -04:00
Ayman Bagabas
9f2d52aae2 fix: lint issues 2024-08-22 17:16:18 -04:00
Ayman Bagabas
54950ba0b5 feat(ci): use meta build workflow 2024-08-22 17:16:18 -04:00
dependabot[bot]
f03a9e6326
feat(deps): bump github.com/charmbracelet/x/ansi from 0.1.4 to 0.2.3 (#352) 2024-08-22 09:53:02 -04:00
Christian Rocha
2c3e532a12 docs(readme): use four spaces in tree and list examples 2024-08-21 21:02:29 -04:00
Christian Rocha
fc6550d8cb docs(readme): scale up tree images a little more 2024-08-21 21:02:29 -04:00
Christian Rocha
4a47e674b5 docs(examples): update tree examples to (mostly) match readme 2024-08-21 21:02:29 -04:00
Christian Rocha
cc6556ef2a docs(readme): update tree images 2024-08-21 21:02:29 -04:00
Christian Rocha
7ecfa09dfa
fix(examples): tree toggle example state 2024-08-20 21:07:38 -04:00
bashbunni
bb3e3398bb
docs(README): match tree example alignment with list examples 2024-08-20 10:11:04 -07:00
bashbunni
bc0de5ca26
docs(README): make tree example match output 2024-08-20 10:06:53 -07:00
bashbunni
185fde3531
docs(README): update tree images 2024-08-20 10:02:04 -07:00
Carlos Alexandro Becker
cf0a7c615f
docs: fix tree screenshot
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-08-19 17:32:51 -03:00
Carlos Alexandro Becker
feb42a9be4
feat: move tree to root (#342)
* feat: support any type for list Root func

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* feat: move tree to root

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* feat: more cleanup

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* docs(examples): bring back tree examples

* docs(examples): add tree toggle example

* docs(examples): fix toggle tree hierarchy; as bashbunni metadata

* fix(tree): stylize whitespace when vertically joining tree elements

* docs: get started with trees

* feat: add RootStyle with example

* test: add test for RootStyle func

* docs(godoc): replace list mentions in tree package

* refactor(examples): use Root shorthand instead of tree.New where applicable

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: bashbunni <bunni@bashbunni.dev>
Co-authored-by: Christian Rocha <christian@rocha.is>
2024-08-19 15:43:29 -03:00
Aditi Patel
0618c73743
feat(test): add test for JoinHorizontal (#346)
* refactor: use position constants

* test: add test for JoinHorizontal
2024-08-07 14:04:34 -04:00
bashbunni
ed7f56e2a7
docs: fix CompleteColor example (#345)
* fix(docs): fix CompleteColor example

* chore: clean up extra whitespace
2024-08-07 12:03:23 -04:00
Ayman Bagabas
8a0e6405b7
fix: remove unnecessary if 2024-07-23 15:39:12 -04:00