Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

build(deps): bump github.com/charmbracelet/bubbles from 0.15.0 to 0.16.1 #183

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 1, 2023

Bumps github.com/charmbracelet/bubbles from 0.15.0 to 0.16.1.

Release notes

Sourced from github.com/charmbracelet/bubbles's releases.

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.

For a quick start on how to use this bubble, take a look at the Example code.

Getting Started

Create a new file picker and add it to your Bubble Tea model.

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.

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.

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)
</tr></table>

... (truncated)

Commits
  • afd7868 chore: filepicker edits (#382)
  • 2eaa8e3 docs(readme): add file picker
  • 6034e68 feat(deps): bump github.com/charmbracelet/bubbletea from 0.23.1 to 0.24.0 (#377)
  • 25414a8 docs: add issue template (#367)
  • 9266653 Reset blink only when CursorBlink (#378)
  • 39f4eea fix(ci): remove soft-serve workflow
  • 7de306a docs: update license
  • e9dfea9 feat(spinner): periods of ellipsis
  • afb975b feat(textarea): make max width/height configurable
  • dc58240 chore(lint): help msg unused param
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) from 0.15.0 to 0.16.1.
- [Release notes](https://github.com/charmbracelet/bubbles/releases)
- [Commits](charmbracelet/bubbles@v0.15.0...v0.16.1)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jun 1, 2023
@dependabot dependabot bot requested review from abdfnx and david-tomson June 1, 2023 14:06
@codesandbox
Copy link

codesandbox bot commented Jun 1, 2023

This branch is running in CodeSandbox. Use the links below to review this PR faster.


CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 2, 2023

Looks like github.com/charmbracelet/bubbles is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Jun 2, 2023
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/charmbracelet/bubbles-0.16.1 branch June 2, 2023 15:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants