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

Make filepicker readDirMsg public #408

Open
mJehanno opened this issue Aug 21, 2023 · 0 comments
Open

Make filepicker readDirMsg public #408

mJehanno opened this issue Aug 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mJehanno
Copy link

Is your feature request related to a problem? Please describe.
I'm using the filepicker bubble inside a bubbleboxer model but even though the init command of the filepicker is well propagated, the readDirMsg doesn't get to the filepicker. I'm probably doing something wrong on my side but I think it would just be easier to be able to filter on that particular message in a switch case block.

Describe the solution you'd like
I think it could be great to make the readDirMsg public. Many bubbles have their main message exposed, but not the filepicker

Describe alternatives you've considered
Didn't find any yet

Additional context
My code looks like this :

func (f FilePickerHolderModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
    var cmd tea.Cmd
    log.Info(msg) // my array of file
    log.Infof("msg type : %T", msg) // readDirMsg
    f.fp, cmd = f.fp.Update(msg)
    return f,cmd
}
@mJehanno mJehanno added the enhancement New feature or request label Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant