Support for callbacks after a task is complete?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- vim
- Domain
- developer-experience
Research direction
Start with the linked notify example in the wiki and inspect the existing notify=echo task behavior. Define how a callback notification should receive task completion and exit-status information, then verify that the callback is invoked for successful, failed, and still-running task states.
Written by the indexing model from the issue text.
Description
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.
- Is it possible to do something like that already?
- If not, would you consider adding a callback feature that would enable me to do this?
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 have notify=callback:my_vimscript_function that I could call.
- Dominant language
- Vim Script
- Stars
- 936
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from skywind3000/asynctasks.vim
-
macro 能否嵌套Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
skywind3000/asynctasks.vim#124 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
skywind3000/asynctasks.vim#122 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
skywind3000/asynctasks.vim#117 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
skywind3000/asynctasks.vim#107 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
skywind3000/asynctasks.vim#106 ·
All issues in skywind3000/asynctasks.vim
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
clangd/vscode-clangd#1009 ·
-
template
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
akasper/plate#1260 · 1 comment ·
Maintainers usually reply within 1 day
-
bug connectors
Difficulty 1/5 Under an hour Newbie friendliness 67/100
pyinfra-dev/pyinfra#2036 ·
Maintainers usually reply within 10 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nicobailon/pi-web-access#642 ·
Maintainers usually reply within 1 day