-
Notifications
You must be signed in to change notification settings - Fork 51
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
Pre/post triggers for VIT actions #209
Comments
I think this was also requested at #109.
Interesting. This opens up a huge box of possibilities. Perhaps you want to avoid this rabbit hole, but I cannot help but think about it so I log some thoughts here: What are all the possible triggers/signals that hooks could condition on? Adding/modifying/completing/deleting a task are some examples; detecting that pending.data changed (#191) is another. Perhaps this relates to the plugin architecture that you have in mind. |
Cool, excellent idea, and glad I asked! I've updated the title of the issue accordingly. It should be fairly easy to implement these custom So now, we need to make some decisions:
|
Ah good point about pre-triggers! Probably we should study interfaces of other frameworks. I've never actually used Taskwarrior hooks or Git hooks. I would add another question that might affect decisions: what are some motivating examples for practical things that this feature can be used for? It might be nice to go through the list of issues and see if any of them could be addressed with this sort of framework. I can take a look at that, but probably not for a couple of weeks. |
I wasn't able to get to this and am not sure when I will now. @thehunmonkgroup if you are waiting on me to do this, let me know and I will try to get to it when I can. |
@scottkosty I'm not rushing this issue at all, so when you have time go ahead and post your findings here. |
@thehunmonkgroup sounds good, thanks. |
This would be a lovely feature enhancement, most particularly in my case to be able to automatically highlight/select a task after it's created. Is this proposed pre/post hook triggers dependent on a plugin architecture first being implemented? |
@ahillio I don't think it is, as long as it's architected to easily support the addition of the plugin architecture in the future it could be done first. |
I just noticed that when a task is added, the cursor goes back to the first task in the report, probably due to the report being reloaded.
To me it would make most sense to always focus on the previously focused task, so that could be the default. Maybe then setting the config value to focus on the added task would focus on the previously focused task as a fallback if it isn't in view? |
I've been thinking about how VIT behaves after creating a new task -- currently it simply reloads the report fresh.
There's some convenience things we could do, but I'm unclear about how useful they might be, and /or how best to implement them. Ideas:
{ACTION_TASK_EDIT}
or!rw myscript.sh {TASK_UUID}
. Obviously a config option disabled by default.Looking for some thoughts on the above and any other suggestions folks might have.
The text was updated successfully, but these errors were encountered: