Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diag_Hooks-improvement.txt
:Author: djp
:Date: 2016-01-03 22:27
This is a text mockup of a proposed refinement of the task diag / Hooks section.
The current display bugs be because;
a) "Scripts" is redundant
b) "Enabled" is inaccurate, some are not executable, some unrecognized
c) (unrecognized hook name) is even listed at all, especially directories, shouldn't be.
d) displaying /path/to/hooks is completely unecessary
Before==================================================
Hooks
Scripts: Enabled
/home/djp/.task/hooks/default-date-time (executable) (unrecognized hook name)
/home/djp/.task/hooks/on-add-pirate (executable) (symlink)
/home/djp/.task/hooks/on-add-shift-all-recurrence (not executable)
/home/djp/.task/hooks/on-add_agenda.py (executable) (symlink)
/home/djp/.task/hooks/on-exit_git.sh (not executable)
/home/djp/.task/hooks/on-modify-pirate (executable) (symlink)
/home/djp/.task/hooks/on-modify.timetrack.py (executable) (symlink)
/home/djp/.task/hooks/on-modify_agenda.py (executable) (symlink)
/home/djp/.task/hooks/task.shift-recurrence (executable) (unrecognized hook name)
/home/djp/.task/hooks/timetrack.ledger (not executable) (unrecognized hook name)
After=================================================
Hooks
Enabled:
on-add-pirate (executable) (symlink)
on-add_agenda.py (executable) (symlink)
on-modify-pirate (executable) (symlink)
on-modify.timetrack.py (executable) (symlink)
on-modify_agenda.py (executable) (symlink)
Disabled:
on-add-shift-all-recurrence (not executable)
on-exit_git.sh (not executable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment