# Hooks

<dt><b>Flag:</b> <code>--pre-new-task</code></dt>
<dt><b>Env:</b> <code>$TODOTXT_TUI_PRE_NEW_TASK</code></dt>
<dt><b>Conf:</b> <code>pre_new_task</code></dt>
<dd>
Path to the script executed before creating a new task. If none, no action is taken before a new task is created
</dd>
<br>

<dt><b>Flag:</b> <code>--post-new-task</code></dt>
<dt><b>Env:</b> <code>$TODOTXT_TUI_POST_NEW_TASK</code></dt>
<dt><b>Conf:</b> <code>post_new_task</code></dt>
<dd>
Path to the script executed after creating a new task. If none, no action is taken after a new task is created
</dd>
<br>

<dt><b>Flag:</b> <code>--pre-remove-task</code></dt>
<dt><b>Env:</b> <code>$TODOTXT_TUI_PRE_REMOVE_TASK</code></dt>
<dt><b>Conf:</b> <code>pre_remove_task</code></dt>
<dd>
Path to the script executed before removing a task. If none, no action is taken before a task is removed
</dd>
<br>

<dt><b>Flag:</b> <code>--post-remove-task</code></dt>
<dt><b>Env:</b> <code>$TODOTXT_TUI_POST_REMOVE_TASK</code></dt>
<dt><b>Conf:</b> <code>post_remove_task</code></dt>
<dd>
Path to the script executed after removing a task. If none, no action is taken after a task is removed
</dd>
<br>

<dt><b>Flag:</b> <code>--pre-move-task</code></dt>
<dt><b>Env:</b> <code>$TODOTXT_TUI_PRE_MOVE_TASK</code></dt>
<dt><b>Conf:</b> <code>pre_move_task</code></dt>
<dd>
Path to the script executed before moving a task. If none, no action is taken before a task is moved
</dd>
<br>

<dt><b>Flag:</b> <code>--post-move-task</code></dt>
<dt><b>Env:</b> <code>$TODOTXT_TUI_POST_MOVE_TASK</code></dt>
<dt><b>Conf:</b> <code>post_move_task</code></dt>
<dd>
Path to the script executed after moving a task. If none, no action is taken after a task is moved
</dd>
<br>

<dt><b>Flag:</b> <code>--pre-update-task</code></dt>
<dt><b>Env:</b> <code>$TODOTXT_TUI_PRE_UPDATE_TASK</code></dt>
<dt><b>Conf:</b> <code>pre_update_task</code></dt>
<dd>
Path to the script executed before updating a task. If none, no action is taken before a task is updated
</dd>
<br>

<dt><b>Flag:</b> <code>--post-update-task</code></dt>
<dt><b>Env:</b> <code>$TODOTXT_TUI_POST_UPDATE_TASK</code></dt>
<dt><b>Conf:</b> <code>post_update_task</code></dt>
<dd>
Path to the script executed after updating a task. If none, no action is taken after a task is updated
</dd>
<br>
