Replies: 1 comment 1 reply
-
|
Hi! Opening editors from within a Bubble Tea program is something we need to add support for. See: #171. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, That's sorry for my bad english.
I need to update view, use async function.
I know the
model.Update(msg tea.Msg)can update view, that will return atea.Cmd, but how do i call update view function at a new async function (goroutine)?I have a blog list, I use the
list-fancyto show it, and when I type theEnterkey, program will open a editor to edit it. I use a new goroutine to listen the editor's close, it success. but, I can't use a function to update view. (maybe update article title to "* {title} " or update the status message to "save file: {title} success")like this,
I tried use a variable to record status, when status change
i use the new if branch to return
m.NewStatusMessage(statusMessageStyle("Save file: " + title))but it does not work...
like this,
Can somebody teach me how to update ?
Beta Was this translation helpful? Give feedback.
All reactions