Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update module github.com/charmbracelet/bubbles to v0.16.1 #84

Closed
wants to merge 1 commit into from

Conversation

ctison
Copy link
Owner

@ctison ctison commented Jan 21, 2023

This PR contains the following updates:

Package Type Update Change
github.com/charmbracelet/bubbles require minor v0.14.0 -> v0.16.1

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

charmbracelet/bubbles (github.com/charmbracelet/bubbles)

v0.16.1

Compare Source

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.

File picker example

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)
}

return m, cmd

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

New

Fixed

New Contributors

Full Changelog: charmbracelet/bubbles@v0.15.0...v0.16.0


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.

v0.16.0

Compare Source

v0.15.0

Compare Source

Ceci, Cela

This is primarily a housekeeping release with lots and lots of bugfixes and improvements from the community. Thanks, everyone, for all your support! 🤗

Please do feel free to say hello, ask questions, and tell us what else you want to see in our Discord. 💬

New

Fixed

New Contributors

Full Changelog: charmbracelet/bubbles@v0.14.0...v0.15.0


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@ctison ctison self-assigned this Jan 21, 2023
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from c8ce55f to f2afbb2 Compare March 11, 2023 06:08
@ctison ctison changed the title chore(deps): update module github.com/charmbracelet/bubbles to v0.15.0 chore(deps): update module github.com/charmbracelet/bubbles to v0.16.1 Jun 1, 2023
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch 2 times, most recently from ddef0a6 to d46d820 Compare June 8, 2023 06:02
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch 2 times, most recently from 79868a4 to d82e4a5 Compare June 14, 2023 06:02
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from d82e4a5 to bcc83c9 Compare August 18, 2023 06:02
@ctison ctison force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from bcc83c9 to adbcaad Compare October 13, 2023 06:02
@ctison ctison closed this Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants