-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support for callbacks after a task is complete? #72
Comments
https://github.com/skywind3000/asynctasks.vim/wiki/Task-Examples#silence-and-notify please update to the latest version,
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
This is a really neat plugin, and I already have defined a bunch of tasks. One feature I haven't found yet and that I miss is the ability to have a (vimscript) callback on exit. In particular, I want to update my statusline (e.g. have a red square) if the exit code is >= 1 , green square if the exit code is 0 and a yellow square if the task is still running.
Edit: Looks like the notify example is a nice starting point if I just want the message to be echoed on the statusline. In that case, I'll add
notify=echo
to the task. It would be nice to also havenotify=callback:my_vimscript_function
that I could call.The text was updated successfully, but these errors were encountered: