2024-02-19 02:51:25 +00:00
|
|
|
module git.asdf.cafe/abs3nt/gspot
|
2024-02-18 06:57:47 +00:00
|
|
|
|
2024-05-30 22:19:52 +00:00
|
|
|
go 1.22.3
|
2024-02-18 06:57:47 +00:00
|
|
|
|
|
|
|
require (
|
|
|
|
git.asdf.cafe/abs3nt/gunner v0.0.1
|
2024-02-18 23:04:34 +00:00
|
|
|
github.com/atotto/clipboard v0.1.4
|
fix(deps): update module github.com/charmbracelet/bubbles to v0.19.0 (#33)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) | require | minor | `v0.18.0` -> `v0.19.0` |
---
### Release Notes
<details>
<summary>charmbracelet/bubbles (github.com/charmbracelet/bubbles)</summary>
### [`v0.19.0`](https://github.com/charmbracelet/bubbles/releases/tag/v0.19.0)
[Compare Source](https://github.com/charmbracelet/bubbles/compare/v0.18.0...v0.19.0)
### Bugs? Squashed (along with a few nice lil’ features).
Community-Driven Development?! Yep, the majority of the changes in this release were done by the community. *Thank you* all for your contributions that made this release possible.
#### Progress: custom chars
You can now customize the filled and empty characters of the progress bar.
```go
p := progress.New(progress.WithFillCharacters('>', '.'))
```
![progress bar example](https://github.com/user-attachments/assets/ee1a1351-ebee-4f39-8543-af464e60b099)
#### Table improvements
##### Help is on the way
Table now includes a short and full help view so it's easier than ever to tell your users how to interact with the table.
```go
// Render a table with its help.
t := table.New()
view := t.View() + "\n" + t.HelpView()
```
<img src="https://github.com/user-attachments/assets/22195043-5578-4201-982d-a8f9b7eefc5f" width="600">
##### Accessing columns
You can also now get the table's columns (this already existed for rows).
```go
package table
// Columns returns the current columns.
func (m Model) Columns() []Column
```
#### List: page navigation is fixed!
Previously, `list.NextPage()` and `list.PrevPage()` didn't work because the methods did not have pointer receivers. We've fixed this…by making them pointer receivers!
⚠️ Note that this is a minor API change and you *might* need to update your app to pass a pointer receiver to your model rather than a copy. Details in [#​458](https://github.com/charmbracelet/bubbles/issues/458).
```go
package progress
// NextPage moves to the next page, if available.
func (m *Model) NextPage()
// PrevPage moves to the previous page, if available.
func (m *Model) PrevPage()
```
***
#### What’s Changed
##### Changed
- Textarea: Improve setting width by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/496
- Textinput: fix out of range panic if no matched suggestions by [@​rdnt](https://github.com/rdnt) in https://github.com/charmbracelet/bubbles/pull/473
- List: Fix no-op list pagination functions by [@​nekopy](https://github.com/nekopy) in https://github.com/charmbracelet/bubbles/pull/458
- Table: Clarify position constant in JoinHorizontal by [@​aditipatelpro](https://github.com/aditipatelpro) in https://github.com/charmbracelet/bubbles/pull/577
- Progress: make full/empty fill characters configurable by [@​rwinkhart](https://github.com/rwinkhart) in https://github.com/charmbracelet/bubbles/pull/409
- Dependencies: switch to x/ansi for text manipulation by [@​aymanbagabas](https://github.com/aymanbagabas) in https://github.com/charmbracelet/bubbles/pull/505
##### Added
- Textarea: add help to textarea key bindings by [@​TravisYeah](https://github.com/TravisYeah) in https://github.com/charmbracelet/bubbles/pull/418
- Textarea: Add multiline placeholder by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/302
- Table: Add column return function by [@​abeleinin](https://github.com/abeleinin) in https://github.com/charmbracelet/bubbles/pull/369
- Table: Implement help.Keymap interface and add quit mapping by [@​prgres](https://github.com/prgres) in https://github.com/charmbracelet/bubbles/pull/440
- Ctrl+Left/Right for WordForward/Backward by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/387
- Use goreleaser for releases by [@​aymanbagabas](https://github.com/aymanbagabas) in https://github.com/charmbracelet/bubbles/pull/526
##### Fixed
- Table: Render Row Tests by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/487
- Table: Only render columns with a positive width by [@​fabio42](https://github.com/fabio42) in https://github.com/charmbracelet/bubbles/pull/465
- Table: Fix inheritence of SelectedStyle in StyleFunc by [@​gabrielfu](https://github.com/gabrielfu) in https://github.com/charmbracelet/bubbles/pull/539
- Table: Don't include header height in the total table size by [@​prgres](https://github.com/prgres) in https://github.com/charmbracelet/bubbles/pull/434
- Table: Fix premature viewport scroll by [@​dzeleniak](https://github.com/dzeleniak) in https://github.com/charmbracelet/bubbles/pull/429
- Textarea: Fix end of buffer character by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/491
- Textarea: Set textarea default EndOfBufferCharacter to ' ' by [@​blvrd](https://github.com/blvrd) in https://github.com/charmbracelet/bubbles/pull/510
- Textarea: End of Buffer alignment by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/486
- Textinput: don't block input on validation by [@​GabrielNagy](https://github.com/GabrielNagy) in https://github.com/charmbracelet/bubbles/pull/185
- Viewport: Fix division by zero in scrollpercentage by [@​zMoooooritz](https://github.com/zMoooooritz) in https://github.com/charmbracelet/bubbles/pull/494
- Help: Fix centering by [@​gabe565](https://github.com/gabe565) in https://github.com/charmbracelet/bubbles/pull/516
- Progress: Stop spring defaults from overriding WithStringOptions by [@​nervo](https://github.com/nervo) in https://github.com/charmbracelet/bubbles/pull/540
- Cursor: Make SetMode method in cursor library handle invalid mode values correctly by [@​anirudhaCodes](https://github.com/anirudhaCodes) in https://github.com/charmbracelet/bubbles/pull/477
##### Test coverage :white_check_mark:
- Add tests for textarea view by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/485
- Add tests for paginator by [@​anirudhaCodes](https://github.com/anirudhaCodes) in https://github.com/charmbracelet/bubbles/pull/480
- Add tests for textInput Tests by [@​KevM](https://github.com/KevM) in https://github.com/charmbracelet/bubbles/pull/500
- Improve textarea tests by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/490
#### New Contributors
- [@​rdnt](https://github.com/rdnt) made their first contribution in https://github.com/charmbracelet/bubbles/pull/473
- [@​rwinkhart](https://github.com/rwinkhart) made their first contribution in https://github.com/charmbracelet/bubbles/pull/409
- [@​mikelorant](https://github.com/mikelorant) made their first contribution in https://github.com/charmbracelet/bubbles/pull/485
- [@​anirudhaCodes](https://github.com/anirudhaCodes) made their first contribution in https://github.com/charmbracelet/bubbles/pull/480
- [@​nekopy](https://github.com/nekopy) made their first contribution in https://github.com/charmbracelet/bubbles/pull/458
- [@​TravisYeah](https://github.com/TravisYeah) made their first contribution in https://github.com/charmbracelet/bubbles/pull/418
- [@​abeleinin](https://github.com/abeleinin) made their first contribution in https://github.com/charmbracelet/bubbles/pull/369
- [@​fabio42](https://github.com/fabio42) made their first contribution in https://github.com/charmbracelet/bubbles/pull/465
- [@​prgres](https://github.com/prgres) made their first contribution in https://github.com/charmbracelet/bubbles/pull/440
- [@​zMoooooritz](https://github.com/zMoooooritz) made their first contribution in https://github.com/charmbracelet/bubbles/pull/494
- [@​dzeleniak](https://github.com/dzeleniak) made their first contribution in https://github.com/charmbracelet/bubbles/pull/429
- [@​KevM](https://github.com/KevM) made their first contribution in https://github.com/charmbracelet/bubbles/pull/500
- [@​gabe565](https://github.com/gabe565) made their first contribution in https://github.com/charmbracelet/bubbles/pull/516
- [@​blvrd](https://github.com/blvrd) made their first contribution in https://github.com/charmbracelet/bubbles/pull/510
- [@​nervo](https://github.com/nervo) made their first contribution in https://github.com/charmbracelet/bubbles/pull/540
- [@​gabrielfu](https://github.com/gabrielfu) made their first contribution in https://github.com/charmbracelet/bubbles/pull/539
- [@​aditipatelpro](https://github.com/aditipatelpro) made their first contribution in https://github.com/charmbracelet/bubbles/pull/577
**Full Changelog**: https://github.com/charmbracelet/bubbles/compare/v0.18.0...v0.19.0
***
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg?1" width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.social/@​charm), or on [Discord](https://charm.sh/chat).
</details>
---
### 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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC40NC4zIiwidXBkYXRlZEluVmVyIjoiMzguNDQuMyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Reviewed-on: https://git.asdf.cafe/abs3nt/gspot/pulls/33
2024-08-27 16:23:52 +00:00
|
|
|
github.com/charmbracelet/bubbles v0.19.0
|
|
|
|
github.com/charmbracelet/bubbletea v0.27.0
|
fix(deps): update module github.com/charmbracelet/lipgloss to v0.12.1 (#20)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) | require | minor | `v0.11.1` -> `v0.12.1` |
---
### Release Notes
<details>
<summary>charmbracelet/lipgloss (github.com/charmbracelet/lipgloss)</summary>
### [`v0.12.1`](https://github.com/charmbracelet/lipgloss/releases/tag/v0.12.1)
[Compare Source](https://github.com/charmbracelet/lipgloss/compare/v0.12.0...v0.12.1)
This release fixes a regression with regard to border calculations introduced in Lip Gloss v0.11.1.
***
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.technology/@​charm), or on [Discord](https://charm.sh/chat).
### [`v0.12.0`](https://github.com/charmbracelet/lipgloss/releases/tag/v0.12.0)
[Compare Source](https://github.com/charmbracelet/lipgloss/compare/v0.11.1...v0.12.0)
### Lists, Check ✓
This release adds a new sub-package for rendering trees and lists.
```go
import "github.com/charmbracelet/lipgloss/list"
```
Define a new list.
```go
l := list.New("A", "B", "C")
```
Print the list.
```go
fmt.Println(l)
// • A
// • B
// • C
```
Lists have the ability to nest.
```go
l := list.New(
"A", list.New("Artichoke"),
"B", list.New("Baking Flour", "Bananas", "Barley", "Bean Sprouts"),
"C", list.New("Cashew Apple", "Cashews", "Coconut Milk", "Curry Paste", "Currywurst"),
"D", list.New("Dill", "Dragonfruit", "Dried Shrimp"),
"E", list.New("Eggs"),
"F", list.New("Fish Cake", "Furikake"),
"J", list.New("Jicama"),
"K", list.New("Kohlrabi"),
"L", list.New("Leeks", "Lentils", "Licorice Root"),
)
```
Print the list.
```go
fmt.Println(l)
```
<p align="center">
<img width="600" alt="image" src="https://github.com/charmbracelet/lipgloss/assets/42545625/0dc9f440-0748-4151-a3b0-7dcf29dfcdb0">
</p>
Lists can be customized via their enumeration function as well as using
`lipgloss.Style`s.
```go
enumeratorStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("99")).MarginRight(1)
itemStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("212")).MarginRight(1)
l := list.New(
"Glossier",
"Claire’s Boutique",
"Nyx",
"Mac",
"Milk",
).
Enumerator(list.Roman).
EnumeratorStyle(enumeratorStyle).
ItemStyle(itemStyle)
```
Print the list.
<p align="center">
<img width="600" alt="List example" src="https://github.com/charmbracelet/lipgloss/assets/42545625/360494f1-57fb-4e13-bc19-0006efe01561">
</p>
In addition to the predefined enumerators (`Arabic`, `Alphabet`, `Roman`, `Bullet`, `Tree`),
you may also define your own custom enumerator:
```go
l := list.New("Duck", "Duck", "Duck", "Duck", "Goose", "Duck", "Duck")
func DuckDuckGooseEnumerator(l list.Items, i int) string {
if l.At(i).Value() == "Goose" {
return "Honk →"
}
return ""
}
l = l.Enumerator(DuckDuckGooseEnumerator)
```
Print the list:
<p align="center">
<img width="600" alt="image" src="https://github.com/charmbracelet/lipgloss/assets/42545625/157aaf30-140d-4948-9bb4-dfba46e5b87e">
</p>
If you need, you can also build lists incrementally:
```go
l := list.New()
for i := 0; i < repeat; i++ {
l.Item("Lip Gloss")
}
```
***
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.technology/@​charm), or on [Discord](https://charm.sh/chat).
</details>
---
### 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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjguMiIsInVwZGF0ZWRJblZlciI6IjM3LjQyOS4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Reviewed-on: https://git.asdf.cafe/abs3nt/gspot/pulls/20
2024-07-14 19:35:20 +00:00
|
|
|
github.com/charmbracelet/lipgloss v0.12.1
|
2024-07-11 18:25:12 +00:00
|
|
|
github.com/lmittmann/tint v1.0.5
|
2024-08-27 16:24:33 +00:00
|
|
|
github.com/rivo/tview v0.0.0-20240818110301-fd649dbf1223
|
2024-02-19 18:11:47 +00:00
|
|
|
github.com/urfave/cli/v3 v3.0.0-alpha9
|
2024-05-30 22:19:52 +00:00
|
|
|
github.com/zmb3/spotify/v2 v2.4.2
|
2024-07-06 20:50:41 +00:00
|
|
|
go.uber.org/fx v1.22.1
|
2024-08-27 16:24:06 +00:00
|
|
|
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948
|
2024-07-06 20:50:47 +00:00
|
|
|
golang.org/x/net v0.27.0
|
2024-07-06 20:56:39 +00:00
|
|
|
golang.org/x/oauth2 v0.21.0
|
fix(deps): update module github.com/charmbracelet/bubbles to v0.19.0 (#33)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) | require | minor | `v0.18.0` -> `v0.19.0` |
---
### Release Notes
<details>
<summary>charmbracelet/bubbles (github.com/charmbracelet/bubbles)</summary>
### [`v0.19.0`](https://github.com/charmbracelet/bubbles/releases/tag/v0.19.0)
[Compare Source](https://github.com/charmbracelet/bubbles/compare/v0.18.0...v0.19.0)
### Bugs? Squashed (along with a few nice lil’ features).
Community-Driven Development?! Yep, the majority of the changes in this release were done by the community. *Thank you* all for your contributions that made this release possible.
#### Progress: custom chars
You can now customize the filled and empty characters of the progress bar.
```go
p := progress.New(progress.WithFillCharacters('>', '.'))
```
![progress bar example](https://github.com/user-attachments/assets/ee1a1351-ebee-4f39-8543-af464e60b099)
#### Table improvements
##### Help is on the way
Table now includes a short and full help view so it's easier than ever to tell your users how to interact with the table.
```go
// Render a table with its help.
t := table.New()
view := t.View() + "\n" + t.HelpView()
```
<img src="https://github.com/user-attachments/assets/22195043-5578-4201-982d-a8f9b7eefc5f" width="600">
##### Accessing columns
You can also now get the table's columns (this already existed for rows).
```go
package table
// Columns returns the current columns.
func (m Model) Columns() []Column
```
#### List: page navigation is fixed!
Previously, `list.NextPage()` and `list.PrevPage()` didn't work because the methods did not have pointer receivers. We've fixed this…by making them pointer receivers!
⚠️ Note that this is a minor API change and you *might* need to update your app to pass a pointer receiver to your model rather than a copy. Details in [#​458](https://github.com/charmbracelet/bubbles/issues/458).
```go
package progress
// NextPage moves to the next page, if available.
func (m *Model) NextPage()
// PrevPage moves to the previous page, if available.
func (m *Model) PrevPage()
```
***
#### What’s Changed
##### Changed
- Textarea: Improve setting width by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/496
- Textinput: fix out of range panic if no matched suggestions by [@​rdnt](https://github.com/rdnt) in https://github.com/charmbracelet/bubbles/pull/473
- List: Fix no-op list pagination functions by [@​nekopy](https://github.com/nekopy) in https://github.com/charmbracelet/bubbles/pull/458
- Table: Clarify position constant in JoinHorizontal by [@​aditipatelpro](https://github.com/aditipatelpro) in https://github.com/charmbracelet/bubbles/pull/577
- Progress: make full/empty fill characters configurable by [@​rwinkhart](https://github.com/rwinkhart) in https://github.com/charmbracelet/bubbles/pull/409
- Dependencies: switch to x/ansi for text manipulation by [@​aymanbagabas](https://github.com/aymanbagabas) in https://github.com/charmbracelet/bubbles/pull/505
##### Added
- Textarea: add help to textarea key bindings by [@​TravisYeah](https://github.com/TravisYeah) in https://github.com/charmbracelet/bubbles/pull/418
- Textarea: Add multiline placeholder by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/302
- Table: Add column return function by [@​abeleinin](https://github.com/abeleinin) in https://github.com/charmbracelet/bubbles/pull/369
- Table: Implement help.Keymap interface and add quit mapping by [@​prgres](https://github.com/prgres) in https://github.com/charmbracelet/bubbles/pull/440
- Ctrl+Left/Right for WordForward/Backward by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/387
- Use goreleaser for releases by [@​aymanbagabas](https://github.com/aymanbagabas) in https://github.com/charmbracelet/bubbles/pull/526
##### Fixed
- Table: Render Row Tests by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/487
- Table: Only render columns with a positive width by [@​fabio42](https://github.com/fabio42) in https://github.com/charmbracelet/bubbles/pull/465
- Table: Fix inheritence of SelectedStyle in StyleFunc by [@​gabrielfu](https://github.com/gabrielfu) in https://github.com/charmbracelet/bubbles/pull/539
- Table: Don't include header height in the total table size by [@​prgres](https://github.com/prgres) in https://github.com/charmbracelet/bubbles/pull/434
- Table: Fix premature viewport scroll by [@​dzeleniak](https://github.com/dzeleniak) in https://github.com/charmbracelet/bubbles/pull/429
- Textarea: Fix end of buffer character by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/491
- Textarea: Set textarea default EndOfBufferCharacter to ' ' by [@​blvrd](https://github.com/blvrd) in https://github.com/charmbracelet/bubbles/pull/510
- Textarea: End of Buffer alignment by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/486
- Textinput: don't block input on validation by [@​GabrielNagy](https://github.com/GabrielNagy) in https://github.com/charmbracelet/bubbles/pull/185
- Viewport: Fix division by zero in scrollpercentage by [@​zMoooooritz](https://github.com/zMoooooritz) in https://github.com/charmbracelet/bubbles/pull/494
- Help: Fix centering by [@​gabe565](https://github.com/gabe565) in https://github.com/charmbracelet/bubbles/pull/516
- Progress: Stop spring defaults from overriding WithStringOptions by [@​nervo](https://github.com/nervo) in https://github.com/charmbracelet/bubbles/pull/540
- Cursor: Make SetMode method in cursor library handle invalid mode values correctly by [@​anirudhaCodes](https://github.com/anirudhaCodes) in https://github.com/charmbracelet/bubbles/pull/477
##### Test coverage :white_check_mark:
- Add tests for textarea view by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/485
- Add tests for paginator by [@​anirudhaCodes](https://github.com/anirudhaCodes) in https://github.com/charmbracelet/bubbles/pull/480
- Add tests for textInput Tests by [@​KevM](https://github.com/KevM) in https://github.com/charmbracelet/bubbles/pull/500
- Improve textarea tests by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/490
#### New Contributors
- [@​rdnt](https://github.com/rdnt) made their first contribution in https://github.com/charmbracelet/bubbles/pull/473
- [@​rwinkhart](https://github.com/rwinkhart) made their first contribution in https://github.com/charmbracelet/bubbles/pull/409
- [@​mikelorant](https://github.com/mikelorant) made their first contribution in https://github.com/charmbracelet/bubbles/pull/485
- [@​anirudhaCodes](https://github.com/anirudhaCodes) made their first contribution in https://github.com/charmbracelet/bubbles/pull/480
- [@​nekopy](https://github.com/nekopy) made their first contribution in https://github.com/charmbracelet/bubbles/pull/458
- [@​TravisYeah](https://github.com/TravisYeah) made their first contribution in https://github.com/charmbracelet/bubbles/pull/418
- [@​abeleinin](https://github.com/abeleinin) made their first contribution in https://github.com/charmbracelet/bubbles/pull/369
- [@​fabio42](https://github.com/fabio42) made their first contribution in https://github.com/charmbracelet/bubbles/pull/465
- [@​prgres](https://github.com/prgres) made their first contribution in https://github.com/charmbracelet/bubbles/pull/440
- [@​zMoooooritz](https://github.com/zMoooooritz) made their first contribution in https://github.com/charmbracelet/bubbles/pull/494
- [@​dzeleniak](https://github.com/dzeleniak) made their first contribution in https://github.com/charmbracelet/bubbles/pull/429
- [@​KevM](https://github.com/KevM) made their first contribution in https://github.com/charmbracelet/bubbles/pull/500
- [@​gabe565](https://github.com/gabe565) made their first contribution in https://github.com/charmbracelet/bubbles/pull/516
- [@​blvrd](https://github.com/blvrd) made their first contribution in https://github.com/charmbracelet/bubbles/pull/510
- [@​nervo](https://github.com/nervo) made their first contribution in https://github.com/charmbracelet/bubbles/pull/540
- [@​gabrielfu](https://github.com/gabrielfu) made their first contribution in https://github.com/charmbracelet/bubbles/pull/539
- [@​aditipatelpro](https://github.com/aditipatelpro) made their first contribution in https://github.com/charmbracelet/bubbles/pull/577
**Full Changelog**: https://github.com/charmbracelet/bubbles/compare/v0.18.0...v0.19.0
***
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg?1" width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.social/@​charm), or on [Discord](https://charm.sh/chat).
</details>
---
### 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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC40NC4zIiwidXBkYXRlZEluVmVyIjoiMzguNDQuMyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Reviewed-on: https://git.asdf.cafe/abs3nt/gspot/pulls/33
2024-08-27 16:23:52 +00:00
|
|
|
golang.org/x/sync v0.8.0
|
2024-07-10 00:42:45 +00:00
|
|
|
google.golang.org/api v0.188.0
|
2024-08-27 16:24:47 +00:00
|
|
|
modernc.org/sqlite v1.32.0
|
2024-02-18 06:57:47 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
require (
|
2024-07-10 00:42:45 +00:00
|
|
|
cloud.google.com/go/auth v0.7.0 // indirect
|
2024-05-30 22:19:52 +00:00
|
|
|
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
|
2024-07-10 00:42:45 +00:00
|
|
|
cloud.google.com/go/compute/metadata v0.4.0 // indirect
|
2024-02-18 23:04:34 +00:00
|
|
|
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
|
|
|
|
github.com/charmbracelet/harmonica v0.2.0 // indirect
|
fix(deps): update module github.com/charmbracelet/lipgloss to v0.12.1 (#20)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) | require | minor | `v0.11.1` -> `v0.12.1` |
---
### Release Notes
<details>
<summary>charmbracelet/lipgloss (github.com/charmbracelet/lipgloss)</summary>
### [`v0.12.1`](https://github.com/charmbracelet/lipgloss/releases/tag/v0.12.1)
[Compare Source](https://github.com/charmbracelet/lipgloss/compare/v0.12.0...v0.12.1)
This release fixes a regression with regard to border calculations introduced in Lip Gloss v0.11.1.
***
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.technology/@​charm), or on [Discord](https://charm.sh/chat).
### [`v0.12.0`](https://github.com/charmbracelet/lipgloss/releases/tag/v0.12.0)
[Compare Source](https://github.com/charmbracelet/lipgloss/compare/v0.11.1...v0.12.0)
### Lists, Check ✓
This release adds a new sub-package for rendering trees and lists.
```go
import "github.com/charmbracelet/lipgloss/list"
```
Define a new list.
```go
l := list.New("A", "B", "C")
```
Print the list.
```go
fmt.Println(l)
// • A
// • B
// • C
```
Lists have the ability to nest.
```go
l := list.New(
"A", list.New("Artichoke"),
"B", list.New("Baking Flour", "Bananas", "Barley", "Bean Sprouts"),
"C", list.New("Cashew Apple", "Cashews", "Coconut Milk", "Curry Paste", "Currywurst"),
"D", list.New("Dill", "Dragonfruit", "Dried Shrimp"),
"E", list.New("Eggs"),
"F", list.New("Fish Cake", "Furikake"),
"J", list.New("Jicama"),
"K", list.New("Kohlrabi"),
"L", list.New("Leeks", "Lentils", "Licorice Root"),
)
```
Print the list.
```go
fmt.Println(l)
```
<p align="center">
<img width="600" alt="image" src="https://github.com/charmbracelet/lipgloss/assets/42545625/0dc9f440-0748-4151-a3b0-7dcf29dfcdb0">
</p>
Lists can be customized via their enumeration function as well as using
`lipgloss.Style`s.
```go
enumeratorStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("99")).MarginRight(1)
itemStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("212")).MarginRight(1)
l := list.New(
"Glossier",
"Claire’s Boutique",
"Nyx",
"Mac",
"Milk",
).
Enumerator(list.Roman).
EnumeratorStyle(enumeratorStyle).
ItemStyle(itemStyle)
```
Print the list.
<p align="center">
<img width="600" alt="List example" src="https://github.com/charmbracelet/lipgloss/assets/42545625/360494f1-57fb-4e13-bc19-0006efe01561">
</p>
In addition to the predefined enumerators (`Arabic`, `Alphabet`, `Roman`, `Bullet`, `Tree`),
you may also define your own custom enumerator:
```go
l := list.New("Duck", "Duck", "Duck", "Duck", "Goose", "Duck", "Duck")
func DuckDuckGooseEnumerator(l list.Items, i int) string {
if l.At(i).Value() == "Goose" {
return "Honk →"
}
return ""
}
l = l.Enumerator(DuckDuckGooseEnumerator)
```
Print the list:
<p align="center">
<img width="600" alt="image" src="https://github.com/charmbracelet/lipgloss/assets/42545625/157aaf30-140d-4948-9bb4-dfba46e5b87e">
</p>
If you need, you can also build lists incrementally:
```go
l := list.New()
for i := 0; i < repeat; i++ {
l.Item("Lip Gloss")
}
```
***
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.technology/@​charm), or on [Discord](https://charm.sh/chat).
</details>
---
### 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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjguMiIsInVwZGF0ZWRJblZlciI6IjM3LjQyOS4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Reviewed-on: https://git.asdf.cafe/abs3nt/gspot/pulls/20
2024-07-14 19:35:20 +00:00
|
|
|
github.com/charmbracelet/x/ansi v0.1.4 // indirect
|
2024-05-30 22:19:52 +00:00
|
|
|
github.com/charmbracelet/x/input v0.1.1 // indirect
|
|
|
|
github.com/charmbracelet/x/term v0.1.1 // indirect
|
|
|
|
github.com/charmbracelet/x/windows v0.1.2 // indirect
|
2024-02-18 06:57:47 +00:00
|
|
|
github.com/cristalhq/aconfig v0.18.5 // indirect
|
|
|
|
github.com/cristalhq/aconfig/aconfigdotenv v0.17.1 // indirect
|
2024-02-18 17:58:47 +00:00
|
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
2024-05-30 22:19:52 +00:00
|
|
|
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
|
2024-03-26 19:23:17 +00:00
|
|
|
github.com/felixge/httpsnoop v1.0.4 // indirect
|
2024-06-01 01:16:20 +00:00
|
|
|
github.com/gdamore/encoding v1.0.0 // indirect
|
|
|
|
github.com/gdamore/tcell/v2 v2.7.1 // indirect
|
2024-05-30 22:19:52 +00:00
|
|
|
github.com/go-logr/logr v1.4.2 // indirect
|
2024-03-26 19:23:17 +00:00
|
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
2024-02-18 23:04:34 +00:00
|
|
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
2024-03-26 19:23:17 +00:00
|
|
|
github.com/golang/protobuf v1.5.4 // indirect
|
|
|
|
github.com/google/s2a-go v0.1.7 // indirect
|
|
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
|
|
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
|
2024-07-06 21:05:01 +00:00
|
|
|
github.com/googleapis/gax-go/v2 v2.12.5 // indirect
|
2024-02-18 17:58:47 +00:00
|
|
|
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
|
2024-03-26 19:23:17 +00:00
|
|
|
github.com/joho/godotenv v1.5.1 // indirect
|
2024-02-18 23:04:34 +00:00
|
|
|
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
|
2024-03-26 19:23:17 +00:00
|
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
2024-02-18 23:04:34 +00:00
|
|
|
github.com/mattn/go-localereader v0.0.1 // indirect
|
fix(deps): update module github.com/charmbracelet/bubbles to v0.19.0 (#33)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) | require | minor | `v0.18.0` -> `v0.19.0` |
---
### Release Notes
<details>
<summary>charmbracelet/bubbles (github.com/charmbracelet/bubbles)</summary>
### [`v0.19.0`](https://github.com/charmbracelet/bubbles/releases/tag/v0.19.0)
[Compare Source](https://github.com/charmbracelet/bubbles/compare/v0.18.0...v0.19.0)
### Bugs? Squashed (along with a few nice lil’ features).
Community-Driven Development?! Yep, the majority of the changes in this release were done by the community. *Thank you* all for your contributions that made this release possible.
#### Progress: custom chars
You can now customize the filled and empty characters of the progress bar.
```go
p := progress.New(progress.WithFillCharacters('>', '.'))
```
![progress bar example](https://github.com/user-attachments/assets/ee1a1351-ebee-4f39-8543-af464e60b099)
#### Table improvements
##### Help is on the way
Table now includes a short and full help view so it's easier than ever to tell your users how to interact with the table.
```go
// Render a table with its help.
t := table.New()
view := t.View() + "\n" + t.HelpView()
```
<img src="https://github.com/user-attachments/assets/22195043-5578-4201-982d-a8f9b7eefc5f" width="600">
##### Accessing columns
You can also now get the table's columns (this already existed for rows).
```go
package table
// Columns returns the current columns.
func (m Model) Columns() []Column
```
#### List: page navigation is fixed!
Previously, `list.NextPage()` and `list.PrevPage()` didn't work because the methods did not have pointer receivers. We've fixed this…by making them pointer receivers!
⚠️ Note that this is a minor API change and you *might* need to update your app to pass a pointer receiver to your model rather than a copy. Details in [#​458](https://github.com/charmbracelet/bubbles/issues/458).
```go
package progress
// NextPage moves to the next page, if available.
func (m *Model) NextPage()
// PrevPage moves to the previous page, if available.
func (m *Model) PrevPage()
```
***
#### What’s Changed
##### Changed
- Textarea: Improve setting width by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/496
- Textinput: fix out of range panic if no matched suggestions by [@​rdnt](https://github.com/rdnt) in https://github.com/charmbracelet/bubbles/pull/473
- List: Fix no-op list pagination functions by [@​nekopy](https://github.com/nekopy) in https://github.com/charmbracelet/bubbles/pull/458
- Table: Clarify position constant in JoinHorizontal by [@​aditipatelpro](https://github.com/aditipatelpro) in https://github.com/charmbracelet/bubbles/pull/577
- Progress: make full/empty fill characters configurable by [@​rwinkhart](https://github.com/rwinkhart) in https://github.com/charmbracelet/bubbles/pull/409
- Dependencies: switch to x/ansi for text manipulation by [@​aymanbagabas](https://github.com/aymanbagabas) in https://github.com/charmbracelet/bubbles/pull/505
##### Added
- Textarea: add help to textarea key bindings by [@​TravisYeah](https://github.com/TravisYeah) in https://github.com/charmbracelet/bubbles/pull/418
- Textarea: Add multiline placeholder by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/302
- Table: Add column return function by [@​abeleinin](https://github.com/abeleinin) in https://github.com/charmbracelet/bubbles/pull/369
- Table: Implement help.Keymap interface and add quit mapping by [@​prgres](https://github.com/prgres) in https://github.com/charmbracelet/bubbles/pull/440
- Ctrl+Left/Right for WordForward/Backward by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/387
- Use goreleaser for releases by [@​aymanbagabas](https://github.com/aymanbagabas) in https://github.com/charmbracelet/bubbles/pull/526
##### Fixed
- Table: Render Row Tests by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/487
- Table: Only render columns with a positive width by [@​fabio42](https://github.com/fabio42) in https://github.com/charmbracelet/bubbles/pull/465
- Table: Fix inheritence of SelectedStyle in StyleFunc by [@​gabrielfu](https://github.com/gabrielfu) in https://github.com/charmbracelet/bubbles/pull/539
- Table: Don't include header height in the total table size by [@​prgres](https://github.com/prgres) in https://github.com/charmbracelet/bubbles/pull/434
- Table: Fix premature viewport scroll by [@​dzeleniak](https://github.com/dzeleniak) in https://github.com/charmbracelet/bubbles/pull/429
- Textarea: Fix end of buffer character by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/491
- Textarea: Set textarea default EndOfBufferCharacter to ' ' by [@​blvrd](https://github.com/blvrd) in https://github.com/charmbracelet/bubbles/pull/510
- Textarea: End of Buffer alignment by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/486
- Textinput: don't block input on validation by [@​GabrielNagy](https://github.com/GabrielNagy) in https://github.com/charmbracelet/bubbles/pull/185
- Viewport: Fix division by zero in scrollpercentage by [@​zMoooooritz](https://github.com/zMoooooritz) in https://github.com/charmbracelet/bubbles/pull/494
- Help: Fix centering by [@​gabe565](https://github.com/gabe565) in https://github.com/charmbracelet/bubbles/pull/516
- Progress: Stop spring defaults from overriding WithStringOptions by [@​nervo](https://github.com/nervo) in https://github.com/charmbracelet/bubbles/pull/540
- Cursor: Make SetMode method in cursor library handle invalid mode values correctly by [@​anirudhaCodes](https://github.com/anirudhaCodes) in https://github.com/charmbracelet/bubbles/pull/477
##### Test coverage :white_check_mark:
- Add tests for textarea view by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/485
- Add tests for paginator by [@​anirudhaCodes](https://github.com/anirudhaCodes) in https://github.com/charmbracelet/bubbles/pull/480
- Add tests for textInput Tests by [@​KevM](https://github.com/KevM) in https://github.com/charmbracelet/bubbles/pull/500
- Improve textarea tests by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/490
#### New Contributors
- [@​rdnt](https://github.com/rdnt) made their first contribution in https://github.com/charmbracelet/bubbles/pull/473
- [@​rwinkhart](https://github.com/rwinkhart) made their first contribution in https://github.com/charmbracelet/bubbles/pull/409
- [@​mikelorant](https://github.com/mikelorant) made their first contribution in https://github.com/charmbracelet/bubbles/pull/485
- [@​anirudhaCodes](https://github.com/anirudhaCodes) made their first contribution in https://github.com/charmbracelet/bubbles/pull/480
- [@​nekopy](https://github.com/nekopy) made their first contribution in https://github.com/charmbracelet/bubbles/pull/458
- [@​TravisYeah](https://github.com/TravisYeah) made their first contribution in https://github.com/charmbracelet/bubbles/pull/418
- [@​abeleinin](https://github.com/abeleinin) made their first contribution in https://github.com/charmbracelet/bubbles/pull/369
- [@​fabio42](https://github.com/fabio42) made their first contribution in https://github.com/charmbracelet/bubbles/pull/465
- [@​prgres](https://github.com/prgres) made their first contribution in https://github.com/charmbracelet/bubbles/pull/440
- [@​zMoooooritz](https://github.com/zMoooooritz) made their first contribution in https://github.com/charmbracelet/bubbles/pull/494
- [@​dzeleniak](https://github.com/dzeleniak) made their first contribution in https://github.com/charmbracelet/bubbles/pull/429
- [@​KevM](https://github.com/KevM) made their first contribution in https://github.com/charmbracelet/bubbles/pull/500
- [@​gabe565](https://github.com/gabe565) made their first contribution in https://github.com/charmbracelet/bubbles/pull/516
- [@​blvrd](https://github.com/blvrd) made their first contribution in https://github.com/charmbracelet/bubbles/pull/510
- [@​nervo](https://github.com/nervo) made their first contribution in https://github.com/charmbracelet/bubbles/pull/540
- [@​gabrielfu](https://github.com/gabrielfu) made their first contribution in https://github.com/charmbracelet/bubbles/pull/539
- [@​aditipatelpro](https://github.com/aditipatelpro) made their first contribution in https://github.com/charmbracelet/bubbles/pull/577
**Full Changelog**: https://github.com/charmbracelet/bubbles/compare/v0.18.0...v0.19.0
***
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg?1" width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.social/@​charm), or on [Discord](https://charm.sh/chat).
</details>
---
### 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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC40NC4zIiwidXBkYXRlZEluVmVyIjoiMzguNDQuMyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Reviewed-on: https://git.asdf.cafe/abs3nt/gspot/pulls/33
2024-08-27 16:23:52 +00:00
|
|
|
github.com/mattn/go-runewidth v0.0.16 // indirect
|
2024-02-18 23:04:34 +00:00
|
|
|
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
|
|
|
|
github.com/muesli/cancelreader v0.2.2 // indirect
|
|
|
|
github.com/muesli/reflow v0.3.0 // indirect
|
|
|
|
github.com/muesli/termenv v0.15.2 // indirect
|
2024-02-18 17:58:47 +00:00
|
|
|
github.com/ncruces/go-strftime v0.1.9 // indirect
|
|
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
2024-03-26 19:23:17 +00:00
|
|
|
github.com/rivo/uniseg v0.4.7 // indirect
|
|
|
|
github.com/sahilm/fuzzy v0.1.1 // indirect
|
2024-05-30 22:19:52 +00:00
|
|
|
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
|
|
|
|
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
|
2024-02-18 23:04:34 +00:00
|
|
|
go.opencensus.io v0.24.0 // indirect
|
2024-05-30 22:19:52 +00:00
|
|
|
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 // indirect
|
|
|
|
go.opentelemetry.io/otel v1.27.0 // indirect
|
|
|
|
go.opentelemetry.io/otel/metric v1.27.0 // indirect
|
|
|
|
go.opentelemetry.io/otel/trace v1.27.0 // indirect
|
2024-03-26 19:23:17 +00:00
|
|
|
go.uber.org/dig v1.17.1 // indirect
|
|
|
|
go.uber.org/multierr v1.11.0 // indirect
|
|
|
|
go.uber.org/zap v1.27.0 // indirect
|
2024-07-06 20:50:47 +00:00
|
|
|
golang.org/x/crypto v0.25.0 // indirect
|
fix(deps): update module github.com/charmbracelet/bubbles to v0.19.0 (#33)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) | require | minor | `v0.18.0` -> `v0.19.0` |
---
### Release Notes
<details>
<summary>charmbracelet/bubbles (github.com/charmbracelet/bubbles)</summary>
### [`v0.19.0`](https://github.com/charmbracelet/bubbles/releases/tag/v0.19.0)
[Compare Source](https://github.com/charmbracelet/bubbles/compare/v0.18.0...v0.19.0)
### Bugs? Squashed (along with a few nice lil’ features).
Community-Driven Development?! Yep, the majority of the changes in this release were done by the community. *Thank you* all for your contributions that made this release possible.
#### Progress: custom chars
You can now customize the filled and empty characters of the progress bar.
```go
p := progress.New(progress.WithFillCharacters('>', '.'))
```
![progress bar example](https://github.com/user-attachments/assets/ee1a1351-ebee-4f39-8543-af464e60b099)
#### Table improvements
##### Help is on the way
Table now includes a short and full help view so it's easier than ever to tell your users how to interact with the table.
```go
// Render a table with its help.
t := table.New()
view := t.View() + "\n" + t.HelpView()
```
<img src="https://github.com/user-attachments/assets/22195043-5578-4201-982d-a8f9b7eefc5f" width="600">
##### Accessing columns
You can also now get the table's columns (this already existed for rows).
```go
package table
// Columns returns the current columns.
func (m Model) Columns() []Column
```
#### List: page navigation is fixed!
Previously, `list.NextPage()` and `list.PrevPage()` didn't work because the methods did not have pointer receivers. We've fixed this…by making them pointer receivers!
⚠️ Note that this is a minor API change and you *might* need to update your app to pass a pointer receiver to your model rather than a copy. Details in [#​458](https://github.com/charmbracelet/bubbles/issues/458).
```go
package progress
// NextPage moves to the next page, if available.
func (m *Model) NextPage()
// PrevPage moves to the previous page, if available.
func (m *Model) PrevPage()
```
***
#### What’s Changed
##### Changed
- Textarea: Improve setting width by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/496
- Textinput: fix out of range panic if no matched suggestions by [@​rdnt](https://github.com/rdnt) in https://github.com/charmbracelet/bubbles/pull/473
- List: Fix no-op list pagination functions by [@​nekopy](https://github.com/nekopy) in https://github.com/charmbracelet/bubbles/pull/458
- Table: Clarify position constant in JoinHorizontal by [@​aditipatelpro](https://github.com/aditipatelpro) in https://github.com/charmbracelet/bubbles/pull/577
- Progress: make full/empty fill characters configurable by [@​rwinkhart](https://github.com/rwinkhart) in https://github.com/charmbracelet/bubbles/pull/409
- Dependencies: switch to x/ansi for text manipulation by [@​aymanbagabas](https://github.com/aymanbagabas) in https://github.com/charmbracelet/bubbles/pull/505
##### Added
- Textarea: add help to textarea key bindings by [@​TravisYeah](https://github.com/TravisYeah) in https://github.com/charmbracelet/bubbles/pull/418
- Textarea: Add multiline placeholder by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/302
- Table: Add column return function by [@​abeleinin](https://github.com/abeleinin) in https://github.com/charmbracelet/bubbles/pull/369
- Table: Implement help.Keymap interface and add quit mapping by [@​prgres](https://github.com/prgres) in https://github.com/charmbracelet/bubbles/pull/440
- Ctrl+Left/Right for WordForward/Backward by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/387
- Use goreleaser for releases by [@​aymanbagabas](https://github.com/aymanbagabas) in https://github.com/charmbracelet/bubbles/pull/526
##### Fixed
- Table: Render Row Tests by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/487
- Table: Only render columns with a positive width by [@​fabio42](https://github.com/fabio42) in https://github.com/charmbracelet/bubbles/pull/465
- Table: Fix inheritence of SelectedStyle in StyleFunc by [@​gabrielfu](https://github.com/gabrielfu) in https://github.com/charmbracelet/bubbles/pull/539
- Table: Don't include header height in the total table size by [@​prgres](https://github.com/prgres) in https://github.com/charmbracelet/bubbles/pull/434
- Table: Fix premature viewport scroll by [@​dzeleniak](https://github.com/dzeleniak) in https://github.com/charmbracelet/bubbles/pull/429
- Textarea: Fix end of buffer character by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/491
- Textarea: Set textarea default EndOfBufferCharacter to ' ' by [@​blvrd](https://github.com/blvrd) in https://github.com/charmbracelet/bubbles/pull/510
- Textarea: End of Buffer alignment by [@​maaslalani](https://github.com/maaslalani) in https://github.com/charmbracelet/bubbles/pull/486
- Textinput: don't block input on validation by [@​GabrielNagy](https://github.com/GabrielNagy) in https://github.com/charmbracelet/bubbles/pull/185
- Viewport: Fix division by zero in scrollpercentage by [@​zMoooooritz](https://github.com/zMoooooritz) in https://github.com/charmbracelet/bubbles/pull/494
- Help: Fix centering by [@​gabe565](https://github.com/gabe565) in https://github.com/charmbracelet/bubbles/pull/516
- Progress: Stop spring defaults from overriding WithStringOptions by [@​nervo](https://github.com/nervo) in https://github.com/charmbracelet/bubbles/pull/540
- Cursor: Make SetMode method in cursor library handle invalid mode values correctly by [@​anirudhaCodes](https://github.com/anirudhaCodes) in https://github.com/charmbracelet/bubbles/pull/477
##### Test coverage :white_check_mark:
- Add tests for textarea view by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/485
- Add tests for paginator by [@​anirudhaCodes](https://github.com/anirudhaCodes) in https://github.com/charmbracelet/bubbles/pull/480
- Add tests for textInput Tests by [@​KevM](https://github.com/KevM) in https://github.com/charmbracelet/bubbles/pull/500
- Improve textarea tests by [@​mikelorant](https://github.com/mikelorant) in https://github.com/charmbracelet/bubbles/pull/490
#### New Contributors
- [@​rdnt](https://github.com/rdnt) made their first contribution in https://github.com/charmbracelet/bubbles/pull/473
- [@​rwinkhart](https://github.com/rwinkhart) made their first contribution in https://github.com/charmbracelet/bubbles/pull/409
- [@​mikelorant](https://github.com/mikelorant) made their first contribution in https://github.com/charmbracelet/bubbles/pull/485
- [@​anirudhaCodes](https://github.com/anirudhaCodes) made their first contribution in https://github.com/charmbracelet/bubbles/pull/480
- [@​nekopy](https://github.com/nekopy) made their first contribution in https://github.com/charmbracelet/bubbles/pull/458
- [@​TravisYeah](https://github.com/TravisYeah) made their first contribution in https://github.com/charmbracelet/bubbles/pull/418
- [@​abeleinin](https://github.com/abeleinin) made their first contribution in https://github.com/charmbracelet/bubbles/pull/369
- [@​fabio42](https://github.com/fabio42) made their first contribution in https://github.com/charmbracelet/bubbles/pull/465
- [@​prgres](https://github.com/prgres) made their first contribution in https://github.com/charmbracelet/bubbles/pull/440
- [@​zMoooooritz](https://github.com/zMoooooritz) made their first contribution in https://github.com/charmbracelet/bubbles/pull/494
- [@​dzeleniak](https://github.com/dzeleniak) made their first contribution in https://github.com/charmbracelet/bubbles/pull/429
- [@​KevM](https://github.com/KevM) made their first contribution in https://github.com/charmbracelet/bubbles/pull/500
- [@​gabe565](https://github.com/gabe565) made their first contribution in https://github.com/charmbracelet/bubbles/pull/516
- [@​blvrd](https://github.com/blvrd) made their first contribution in https://github.com/charmbracelet/bubbles/pull/510
- [@​nervo](https://github.com/nervo) made their first contribution in https://github.com/charmbracelet/bubbles/pull/540
- [@​gabrielfu](https://github.com/gabrielfu) made their first contribution in https://github.com/charmbracelet/bubbles/pull/539
- [@​aditipatelpro](https://github.com/aditipatelpro) made their first contribution in https://github.com/charmbracelet/bubbles/pull/577
**Full Changelog**: https://github.com/charmbracelet/bubbles/compare/v0.18.0...v0.19.0
***
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg?1" width="400"></a>
Thoughts? Questions? We love hearing from you. Feel free to reach out on [Twitter](https://twitter.com/charmcli), [The Fediverse](https://mastodon.social/@​charm), or on [Discord](https://charm.sh/chat).
</details>
---
### 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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC40NC4zIiwidXBkYXRlZEluVmVyIjoiMzguNDQuMyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Reviewed-on: https://git.asdf.cafe/abs3nt/gspot/pulls/33
2024-08-27 16:23:52 +00:00
|
|
|
golang.org/x/sys v0.24.0 // indirect
|
2024-07-06 20:50:47 +00:00
|
|
|
golang.org/x/term v0.22.0 // indirect
|
|
|
|
golang.org/x/text v0.16.0 // indirect
|
2024-07-10 00:42:45 +00:00
|
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20240708141625-4ad9e859172b // indirect
|
|
|
|
google.golang.org/grpc v1.64.1 // indirect
|
2024-07-06 21:05:01 +00:00
|
|
|
google.golang.org/protobuf v1.34.2 // indirect
|
2024-03-26 19:23:17 +00:00
|
|
|
modernc.org/gc/v3 v3.0.0-20240304020402-f0dba7c97c2b // indirect
|
2024-08-27 16:24:47 +00:00
|
|
|
modernc.org/libc v1.55.3 // indirect
|
2024-02-18 17:58:47 +00:00
|
|
|
modernc.org/mathutil v1.6.0 // indirect
|
2024-05-30 22:19:52 +00:00
|
|
|
modernc.org/memory v1.8.0 // indirect
|
2024-02-18 17:58:47 +00:00
|
|
|
modernc.org/strutil v1.2.0 // indirect
|
|
|
|
modernc.org/token v1.1.0 // indirect
|
2024-02-18 06:57:47 +00:00
|
|
|
sigs.k8s.io/yaml v1.4.0 // indirect
|
|
|
|
)
|