Clivern / Goenv

🐺 Manage Your Applications Go Environment.
MIT License
34 stars 2 forks source link

fix(deps): update module github.com/charmbracelet/bubbles to v0.20.0 #98

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 1 month ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/charmbracelet/bubbles v0.16.0 -> v0.20.0 age adoption passing confidence

Release Notes

charmbracelet/bubbles (github.com/charmbracelet/bubbles) ### [`v0.20.0`](https://redirect.github.com/charmbracelet/bubbles/releases/tag/v0.20.0) [Compare Source](https://redirect.github.com/charmbracelet/bubbles/compare/v0.19.0...v0.20.0) ### Focus. Breathe. This features support for Bubble Tea's new focus-blur feature as well as a quality-of-life update to `paginator`. Enjoy! #### Focus You heard that right. Focus-blur window events are now enabled for `textinput` and `textarea` which were recently added to [Bubble Tea v1.1.0](https://redirect.github.com/charmbracelet/bubbletea/releases/tag/v1.1.0). As long as [`WithReportFocus`](https://pkg.go.dev/github.com/charmbracelet/bubbletea#WithReportFocus) is enabled in your Program you'll automatically get nicer inputs. To enable focus reporting: ```go p := tea.NewProgram(model{}, tea.WithReportFocus()) ``` Remember to stay focused and hydrated! #### Paginator opts Speaking of functional arguments, `paginator` also received some some new quality-of-life startup options, courtesy [@​nervo](https://redirect.github.com/nervo). ```go p := paginator.New( paginator.WithPerPage(42), paginator.WithTotalPages(42), ) ``` Of course, you can still set the values on the model directly too: ```go p := paginator.New() p.PerPage = 42 p.TotalPages = 24 ``` Happy paging! #### Changelog ##### New! - [`d3bd075`](https://redirect.github.com/charmbracelet/bubbles/commit/d3bd075ed2b27a3b5d76bb79b5d1c928dcd780d0): feat(cursor): focus/blur support ([#​581](https://redirect.github.com/charmbracelet/bubbles/issues/581)) ([@​caarlos0](https://redirect.github.com/caarlos0)) - [`5110925`](https://redirect.github.com/charmbracelet/bubbles/commit/5110925e8788a8ecfd206df0da8dbeed36cde0f0): feat: Introduce paginator options ([@​nervo](https://redirect.github.com/nervo)) ##### Deps - [`3eaf8da`](https://redirect.github.com/charmbracelet/bubbles/commit/3eaf8da348203f12a72ce4f994334dc4cd8d91ba): feat(deps): bump github.com/charmbracelet/bubbletea from 0.27.0 to 1.0.0 ([#​604](https://redirect.github.com/charmbracelet/bubbles/issues/604)) ([@​dependabot](https://redirect.github.com/dependabot)\[bot]) - [`6fc27e9`](https://redirect.github.com/charmbracelet/bubbles/commit/6fc27e99d3b0e0cf5db13111e518b47435c42f5a): feat(deps): bump github.com/charmbracelet/bubbletea from 1.0.0 to 1.1.0 ([#​607](https://redirect.github.com/charmbracelet/bubbles/issues/607)) ([@​dependabot](https://redirect.github.com/dependabot)\[bot]) *** The Charm logo 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.19.0`](https://redirect.github.com/charmbracelet/bubbles/releases/tag/v0.19.0) [Compare Source](https://redirect.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://redirect.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() ``` ##### 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://redirect.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://redirect.github.com/mikelorant) in [https://github.com/charmbracelet/bubbles/pull/496](https://redirect.github.com/charmbracelet/bubbles/pull/496) - Textinput: fix out of range panic if no matched suggestions by [@​rdnt](https://redirect.github.com/rdnt) in [https://github.com/charmbracelet/bubbles/pull/473](https://redirect.github.com/charmbracelet/bubbles/pull/473) - List: Fix no-op list pagination functions by [@​nekopy](https://redirect.github.com/nekopy) in [https://github.com/charmbracelet/bubbles/pull/458](https://redirect.github.com/charmbracelet/bubbles/pull/458) - Table: Clarify position constant in JoinHorizontal by [@​aditipatelpro](https://redirect.github.com/aditipatelpro) in [https://github.com/charmbracelet/bubbles/pull/577](https://redirect.github.com/charmbracelet/bubbles/pull/577) - Progress: make full/empty fill characters configurable by [@​rwinkhart](https://redirect.github.com/rwinkhart) in [https://github.com/charmbracelet/bubbles/pull/409](https://redirect.github.com/charmbracelet/bubbles/pull/409) - Dependencies: switch to x/ansi for text manipulation by [@​aymanbagabas](https://redirect.github.com/aymanbagabas) in [https://github.com/charmbracelet/bubbles/pull/505](https://redirect.github.com/charmbracelet/bubbles/pull/505) ##### Added - Textarea: add help to textarea key bindings by [@​TravisYeah](https://redirect.github.com/TravisYeah) in [https://github.com/charmbracelet/bubbles/pull/418](https://redirect.github.com/charmbracelet/bubbles/pull/418) - Textarea: Add multiline placeholder by [@​mikelorant](https://redirect.github.com/mikelorant) in [https://github.com/charmbracelet/bubbles/pull/302](https://redirect.github.com/charmbracelet/bubbles/pull/302) - Table: Add column return function by [@​abeleinin](https://redirect.github.com/abeleinin) in [https://github.com/charmbracelet/bubbles/pull/369](https://redirect.github.com/charmbracelet/bubbles/pull/369) - Table: Implement help.Keymap interface and add quit mapping by [@​prgres](https://redirect.github.com/prgres) in [https://github.com/charmbracelet/bubbles/pull/440](https://redirect.github.com/charmbracelet/bubbles/pull/440) - Ctrl+Left/Right for WordForward/Backward by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/387](https://redirect.github.com/charmbracelet/bubbles/pull/387) - Use goreleaser for releases by [@​aymanbagabas](https://redirect.github.com/aymanbagabas) in [https://github.com/charmbracelet/bubbles/pull/526](https://redirect.github.com/charmbracelet/bubbles/pull/526) ##### Fixed - Table: Render Row Tests by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/487](https://redirect.github.com/charmbracelet/bubbles/pull/487) - Table: Only render columns with a positive width by [@​fabio42](https://redirect.github.com/fabio42) in [https://github.com/charmbracelet/bubbles/pull/465](https://redirect.github.com/charmbracelet/bubbles/pull/465) - Table: Fix inheritence of SelectedStyle in StyleFunc by [@​gabrielfu](https://redirect.github.com/gabrielfu) in [https://github.com/charmbracelet/bubbles/pull/539](https://redirect.github.com/charmbracelet/bubbles/pull/539) - Table: Don't include header height in the total table size by [@​prgres](https://redirect.github.com/prgres) in [https://github.com/charmbracelet/bubbles/pull/434](https://redirect.github.com/charmbracelet/bubbles/pull/434) - Table: Fix premature viewport scroll by [@​dzeleniak](https://redirect.github.com/dzeleniak) in [https://github.com/charmbracelet/bubbles/pull/429](https://redirect.github.com/charmbracelet/bubbles/pull/429) - Textarea: Fix end of buffer character by [@​mikelorant](https://redirect.github.com/mikelorant) in [https://github.com/charmbracelet/bubbles/pull/491](https://redirect.github.com/charmbracelet/bubbles/pull/491) - Textarea: Set textarea default EndOfBufferCharacter to ' ' by [@​blvrd](https://redirect.github.com/blvrd) in [https://github.com/charmbracelet/bubbles/pull/510](https://redirect.github.com/charmbracelet/bubbles/pull/510) - Textarea: End of Buffer alignment by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/486](https://redirect.github.com/charmbracelet/bubbles/pull/486) - Textinput: don't block input on validation by [@​GabrielNagy](https://redirect.github.com/GabrielNagy) in [https://github.com/charmbracelet/bubbles/pull/185](https://redirect.github.com/charmbracelet/bubbles/pull/185) - Viewport: Fix division by zero in scrollpercentage by [@​zMoooooritz](https://redirect.github.com/zMoooooritz) in [https://github.com/charmbracelet/bubbles/pull/494](https://redirect.github.com/charmbracelet/bubbles/pull/494) - Help: Fix centering by [@​gabe565](https://redirect.github.com/gabe565) in [https://github.com/charmbracelet/bubbles/pull/516](https://redirect.github.com/charmbracelet/bubbles/pull/516) - Progress: Stop spring defaults from overriding WithStringOptions by [@​nervo](https://redirect.github.com/nervo) in [https://github.com/charmbracelet/bubbles/pull/540](https://redirect.github.com/charmbracelet/bubbles/pull/540) - Cursor: Make SetMode method in cursor library handle invalid mode values correctly by [@​anirudhaCodes](https://redirect.github.com/anirudhaCodes) in [https://github.com/charmbracelet/bubbles/pull/477](https://redirect.github.com/charmbracelet/bubbles/pull/477) ##### Test coverage :white_check_mark: - Add tests for textarea view by [@​mikelorant](https://redirect.github.com/mikelorant) in [https://github.com/charmbracelet/bubbles/pull/485](https://redirect.github.com/charmbracelet/bubbles/pull/485) - Add tests for paginator by [@​anirudhaCodes](https://redirect.github.com/anirudhaCodes) in [https://github.com/charmbracelet/bubbles/pull/480](https://redirect.github.com/charmbracelet/bubbles/pull/480) - Add tests for textInput Tests by [@​KevM](https://redirect.github.com/KevM) in [https://github.com/charmbracelet/bubbles/pull/500](https://redirect.github.com/charmbracelet/bubbles/pull/500) - Improve textarea tests by [@​mikelorant](https://redirect.github.com/mikelorant) in [https://github.com/charmbracelet/bubbles/pull/490](https://redirect.github.com/charmbracelet/bubbles/pull/490) #### New Contributors - [@​rdnt](https://redirect.github.com/rdnt) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/473](https://redirect.github.com/charmbracelet/bubbles/pull/473) - [@​rwinkhart](https://redirect.github.com/rwinkhart) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/409](https://redirect.github.com/charmbracelet/bubbles/pull/409) - [@​mikelorant](https://redirect.github.com/mikelorant) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/485](https://redirect.github.com/charmbracelet/bubbles/pull/485) - [@​anirudhaCodes](https://redirect.github.com/anirudhaCodes) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/480](https://redirect.github.com/charmbracelet/bubbles/pull/480) - [@​nekopy](https://redirect.github.com/nekopy) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/458](https://redirect.github.com/charmbracelet/bubbles/pull/458) - [@​TravisYeah](https://redirect.github.com/TravisYeah) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/418](https://redirect.github.com/charmbracelet/bubbles/pull/418) - [@​abeleinin](https://redirect.github.com/abeleinin) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/369](https://redirect.github.com/charmbracelet/bubbles/pull/369) - [@​fabio42](https://redirect.github.com/fabio42) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/465](https://redirect.github.com/charmbracelet/bubbles/pull/465) - [@​prgres](https://redirect.github.com/prgres) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/440](https://redirect.github.com/charmbracelet/bubbles/pull/440) - [@​zMoooooritz](https://redirect.github.com/zMoooooritz) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/494](https://redirect.github.com/charmbracelet/bubbles/pull/494) - [@​dzeleniak](https://redirect.github.com/dzeleniak) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/429](https://redirect.github.com/charmbracelet/bubbles/pull/429) - [@​KevM](https://redirect.github.com/KevM) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/500](https://redirect.github.com/charmbracelet/bubbles/pull/500) - [@​gabe565](https://redirect.github.com/gabe565) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/516](https://redirect.github.com/charmbracelet/bubbles/pull/516) - [@​blvrd](https://redirect.github.com/blvrd) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/510](https://redirect.github.com/charmbracelet/bubbles/pull/510) - [@​nervo](https://redirect.github.com/nervo) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/540](https://redirect.github.com/charmbracelet/bubbles/pull/540) - [@​gabrielfu](https://redirect.github.com/gabrielfu) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/539](https://redirect.github.com/charmbracelet/bubbles/pull/539) - [@​aditipatelpro](https://redirect.github.com/aditipatelpro) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/577](https://redirect.github.com/charmbracelet/bubbles/pull/577) **Full Changelog**: https://github.com/charmbracelet/bubbles/compare/v0.18.0...v0.19.0 *** The Charm logo 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). ### [`v0.18.0`](https://redirect.github.com/charmbracelet/bubbles/releases/tag/v0.18.0) [Compare Source](https://redirect.github.com/charmbracelet/bubbles/compare/v0.17.1...v0.18.0) ### Textarea, but faster This release features several fixes and big performance improvements for the `textarea` bubble. #### What's Changed ##### New - Optional File Permissions and File Size by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/471](https://redirect.github.com/charmbracelet/bubbles/pull/471) - Add Paginator OnFirstPage method by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/463](https://redirect.github.com/charmbracelet/bubbles/pull/463) ##### Improved - Implement Memoization to Speed Up Textarea Rendering by [@​wesen](https://redirect.github.com/wesen) in [https://github.com/charmbracelet/bubbles/pull/427](https://redirect.github.com/charmbracelet/bubbles/pull/427) - refactor(textinput): reduce allocations by [@​naglis](https://redirect.github.com/naglis) in [https://github.com/charmbracelet/bubbles/pull/413](https://redirect.github.com/charmbracelet/bubbles/pull/413) - Use `uniseg.StringWidth` by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/462](https://redirect.github.com/charmbracelet/bubbles/pull/462) ##### Fixed - fix(textarea): correctly trim incoming paste by [@​muesli](https://redirect.github.com/muesli) in [https://github.com/charmbracelet/bubbles/pull/469](https://redirect.github.com/charmbracelet/bubbles/pull/469) - fix(textinput): Placeholder No Longer Changes Width + Paste Calculation by [@​hopefulTex](https://redirect.github.com/hopefulTex) in [https://github.com/charmbracelet/bubbles/pull/451](https://redirect.github.com/charmbracelet/bubbles/pull/451) - fix(viewport): pad width to contentWidth by [@​ivanvc](https://redirect.github.com/ivanvc) in [https://github.com/charmbracelet/bubbles/pull/388](https://redirect.github.com/charmbracelet/bubbles/pull/388) #### New Contributors - [@​seanbanko](https://redirect.github.com/seanbanko) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/442](https://redirect.github.com/charmbracelet/bubbles/pull/442) - [@​hopefulTex](https://redirect.github.com/hopefulTex) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/451](https://redirect.github.com/charmbracelet/bubbles/pull/451) - [@​ivanvc](https://redirect.github.com/ivanvc) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/388](https://redirect.github.com/charmbracelet/bubbles/pull/388) - [@​wesen](https://redirect.github.com/wesen) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/427](https://redirect.github.com/charmbracelet/bubbles/pull/427) **Full Changelog**: https://github.com/charmbracelet/bubbles/compare/v0.17.1...v0.18.0 *** The Charm logo 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). ### [`v0.17.1`](https://redirect.github.com/charmbracelet/bubbles/releases/tag/v0.17.1) [Compare Source](https://redirect.github.com/charmbracelet/bubbles/compare/v0.17.0...v0.17.1) #### What's Changed - feat: upgrade bubbletea and remove deprecated code by [@​aymanbagabas](https://redirect.github.com/aymanbagabas) in [https://github.com/charmbracelet/bubbles/pull/448](https://redirect.github.com/charmbracelet/bubbles/pull/448) **Full Changelog**: https://github.com/charmbracelet/bubbles/compare/v0.17.0...v0.17.1 *** The Charm logo 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). ### [`v0.17.0`](https://redirect.github.com/charmbracelet/bubbles/releases/tag/v0.17.0) [Compare Source](https://redirect.github.com/charmbracelet/bubbles/compare/v0.16.1...v0.17.0) ### Text input autocompletions and various improvements #### Autocompletion in Text Input So [@​toadle](https://redirect.github.com/toadle) wanted `textinput`s to support autocompletion in a ghost-text kind of a way. Rather than wait for us to do it he did what any dedicated open source developer would: he sent a PR! And now we can all benefit from his hard work. Autocompletion is super easy to use: ```go ti := textinput.New() ti.SetSuggestions([]string{"meow", "purr"}) ``` By default you can press ctrl+n and ctrl+p to cycle through suggestions, but those keybindings can be changed as you, the application developer, see fit. For details check out [`textinput.SetSuggestions`](https://pkg.go.dev/github.com/charmbracelet/bubbles@v0.17.0/textinput#Model.SetSuggestions) and the corresponding [`KeyMap`](https://pkg.go.dev/github.com/charmbracelet/bubbles@v0.17.0/textinput#KeyMap) in the docs. #### Is the progress bar done yet? [@​yrashk](https://redirect.github.com/yrashk) acutely noticed that to nicely transition from one state to another after an animated progress bar fills up it's helpful to know when the animated has finished animating before transitioning. To solve for this he added an [`IsAnimating`](https://pkg.go.dev/github.com/charmbracelet/bubbles@v0.17.0/progress#Model.IsAnimating) method to the `progress` model. Thanks, [@​yrashk](https://redirect.github.com/yrashk)! #### Changelog ##### New! - Support suggestions and autocompletion in textinput by [@​toadle](https://redirect.github.com/toadle) in [https://github.com/charmbracelet/bubbles/pull/407](https://redirect.github.com/charmbracelet/bubbles/pull/407) - Add method for determining if progress bar is animating by [@​yrashk](https://redirect.github.com/yrashk) in [https://github.com/charmbracelet/bubbles/pull/386](https://redirect.github.com/charmbracelet/bubbles/pull/386) ##### Improved - Update fuzzy library by [@​caarlos0](https://redirect.github.com/caarlos0) in [https://github.com/charmbracelet/bubbles/pull/379](https://redirect.github.com/charmbracelet/bubbles/pull/379) - Reduce allocations in `filterItems` by [@​naglis](https://redirect.github.com/naglis) in [https://github.com/charmbracelet/bubbles/pull/396](https://redirect.github.com/charmbracelet/bubbles/pull/396) - Improve message when list is empty by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/393](https://redirect.github.com/charmbracelet/bubbles/pull/393) ##### Fixed - Fix unicode character encoding error by [@​lc-1010](https://redirect.github.com/lc-1010) in [https://github.com/charmbracelet/bubbles/pull/421](https://redirect.github.com/charmbracelet/bubbles/pull/421) **Full Changelog**: https://github.com/charmbracelet/bubbles/compare/v0.16.1...v0.17.0 #### New Contributors - [@​yrashk](https://redirect.github.com/yrashk) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/386](https://redirect.github.com/charmbracelet/bubbles/pull/386) - [@​naglis](https://redirect.github.com/naglis) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/391](https://redirect.github.com/charmbracelet/bubbles/pull/391) - [@​lc-1010](https://redirect.github.com/lc-1010) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/421](https://redirect.github.com/charmbracelet/bubbles/pull/421) *** The Charm logo 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). ### [`v0.16.1`](https://redirect.github.com/charmbracelet/bubbles/releases/tag/v0.16.1) [Compare Source](https://redirect.github.com/charmbracelet/bubbles/compare/v0.16.0...v0.16.1) ### File Picker Bubble 📁 🫧 This release introduces a brand new `filepicker` bubble, new features, and a tonne of bugfixes. Let us know what you think, ask questions, or just say hello in our [Discord](https://charm.sh/chat). File picker example For a quick start on how to use this bubble, take a look at the [Example code](https://redirect.github.com/charmbracelet/bubbletea/tree/master/examples/file-picker/main.go). ##### Getting Started Create a new file picker and add it to your Bubble Tea model. ```go picker := filepicker.New() picker.CurrentDirectory, err = os.UserHomeDir() if err != nil { // ... } m := model{ picker: picker, // ... } ``` Initialize the file picker in your `Model`'s `Init` function. ```go func (m model) Init() tea.Cmd { return tea.Batch( m.picker.Init(), // ... ) } ``` Update the filepicker as any other bubble in the `Update` function. After the `picker.Update`, use the `DidSelectFile(msg tea.Msg)` function to perform an action when the user selects a valid file. You may allow only certain file types to be selected with the `AllowedTypes` property and allow directories to be selected with the `DirAllowed` property. To see the currently selected file/directory use the `Path` property. ```go var cmd tea.Cmd m.picker, cmd = m.picker.Update(msg) // Did the user select a file? if didSelect, path := m.picker.DidSelectFile(msg); didSelect { // Get the path of the selected file. return m, tea.Println("You selected: " + selectedPath) } return m, cmd ``` For the full example on how to use this bubble, take a look at the [Example code](https://redirect.github.com/charmbracelet/bubbletea/tree/master/examples/file-picker/main.go). #### New - Filepicker: new bubble by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/343](https://redirect.github.com/charmbracelet/bubbles/pull/343) - Textarea: max width/height configurable by [@​knz](https://redirect.github.com/knz) in [https://github.com/charmbracelet/bubbles/pull/370](https://redirect.github.com/charmbracelet/bubbles/pull/370) - Spinner: periods of ellipsis by [@​meowgorithm](https://redirect.github.com/meowgorithm) in [https://github.com/charmbracelet/bubbles/pull/375](https://redirect.github.com/charmbracelet/bubbles/pull/375) - List: infinite scrolling by [@​jon4hz](https://redirect.github.com/jon4hz) in [https://github.com/charmbracelet/bubbles/pull/316](https://redirect.github.com/charmbracelet/bubbles/pull/316) #### Fixed - app would crash if `deleteWordRight` was called at the end of line by [@​infastin](https://redirect.github.com/infastin) in [https://github.com/charmbracelet/bubbles/pull/313](https://redirect.github.com/charmbracelet/bubbles/pull/313) - support pastes that end with a newline character by [@​knz](https://redirect.github.com/knz) in [https://github.com/charmbracelet/bubbles/pull/314](https://redirect.github.com/charmbracelet/bubbles/pull/314) - data corruption after multi-line input by [@​knz](https://redirect.github.com/knz) in [https://github.com/charmbracelet/bubbles/pull/318](https://redirect.github.com/charmbracelet/bubbles/pull/318) - Remove unused `BackgroundStyle` in TextInput by [@​savannahostrowski](https://redirect.github.com/savannahostrowski) in [https://github.com/charmbracelet/bubbles/pull/341](https://redirect.github.com/charmbracelet/bubbles/pull/341) - add bounds checking to the `SelectedRow` by [@​MikaelFangel](https://redirect.github.com/MikaelFangel) in [https://github.com/charmbracelet/bubbles/pull/351](https://redirect.github.com/charmbracelet/bubbles/pull/351) - fix(progress): last gradient color off by one by [@​residualmind](https://redirect.github.com/residualmind) in [https://github.com/charmbracelet/bubbles/pull/338](https://redirect.github.com/charmbracelet/bubbles/pull/338) - deprecate `CursorStyle` in favour of `Cursor.Style` by [@​maaslalani](https://redirect.github.com/maaslalani) in [https://github.com/charmbracelet/bubbles/pull/365](https://redirect.github.com/charmbracelet/bubbles/pull/365) - Reset blink only when `CursorBlink` by [@​remiposo](https://redirect.github.com/remiposo) in [https://github.com/charmbracelet/bubbles/pull/378](https://redirect.github.com/charmbracelet/bubbles/pull/378) #### New Contributors - [@​infastin](https://redirect.github.com/infastin) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/313](https://redirect.github.com/charmbracelet/bubbles/pull/313) - [@​gzipChrist](https://redirect.github.com/gzipChrist) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/332](https://redirect.github.com/charmbracelet/bubbles/pull/332) - [@​savannahostrowski](https://redirect.github.com/savannahostrowski) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/341](https://redirect.github.com/charmbracelet/bubbles/pull/341) - [@​MikaelFangel](https://redirect.github.com/MikaelFangel) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/351](https://redirect.github.com/charmbracelet/bubbles/pull/351) - [@​stefanbildl](https://redirect.github.com/stefanbildl) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/339](https://redirect.github.com/charmbracelet/bubbles/pull/339) - [@​residualmind](https://redirect.github.com/residualmind) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/338](https://redirect.github.com/charmbracelet/bubbles/pull/338) - [@​bashbunni](https://redirect.github.com/bashbunni) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/359](https://redirect.github.com/charmbracelet/bubbles/pull/359) - [@​squrki](https://redirect.github.com/squrki) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/373](https://redirect.github.com/charmbracelet/bubbles/pull/373) - [@​remiposo](https://redirect.github.com/remiposo) made their first contribution in [https://github.com/charmbracelet/bubbles/pull/378](https://redirect.github.com/charmbracelet/bubbles/pull/378) **Full Changelog**: https://github.com/charmbracelet/bubbles/compare/v0.15.0...v0.16.0 *** The Charm logo 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).

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 is behind base branch, 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.

renovate[bot] commented 1 month ago

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

Details:

Package Change
github.com/charmbracelet/bubbletea v0.27.0 -> v1.1.0
github.com/charmbracelet/lipgloss v0.6.0 -> v0.13.0
github.com/charmbracelet/x/ansi v0.1.4 -> v0.2.3
github.com/charmbracelet/x/term v0.1.1 -> v0.2.0
github.com/mattn/go-isatty v0.0.18 -> v0.0.20
github.com/mattn/go-runewidth v0.0.15 -> v0.0.16
github.com/sahilm/fuzzy v0.1.0 -> v0.1.1
renovate[bot] commented 1 month ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (v0.20.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.