taskwarrior-tui
taskwarrior-tui copied to clipboard
Option to ignore hook execution / make it asynchonous
Description
I have a on-exit hook, that syncs the tasks to my taskserver, after each edit, create and delete.
This however makes using taskwarrior-tui incredibly slow, because it waits for the hook to finish until I can do something (can't do any input until sync is finished).
Solution
I have several ideas. Either make hook execution be performed async. Another one is to set an environment variable when inside of TUI. I can then in my script look for this variable and abort the sync.
Additional context
Here is the hook I use to sync. It's async when executed from the CLI: https://gist.github.com/primeapple/d3d82fbd28e9134d24819dd72430888e