Skip to content
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

on-modify_tag_annotate hook #4

Open
linuxcaffe opened this issue Jan 21, 2021 · 5 comments
Open

on-modify_tag_annotate hook #4

linuxcaffe opened this issue Jan 21, 2021 · 5 comments

Comments

@linuxcaffe
Copy link
Owner

On modifying a task with a +ann tag opens editor for annotation (unless the command is 'task ID annotate SOMETHING, in which case the hook is redundant)

@linuxcaffe
Copy link
Owner Author

@rccavalcanti how about this one?

@linuxcaffe linuxcaffe changed the title on_modify_tag_annotate hook on+modify_tag_annotate hook Jan 22, 2021
@linuxcaffe linuxcaffe changed the title on+modify_tag_annotate hook on-modify_tag_annotate hook Jan 22, 2021
@rc2dev
Copy link
Contributor

rc2dev commented Jan 22, 2021

Let me check if I got the idea:

  1. Run something like task ID mod +ann
  2. A blank editor opens so you can type the annotation.
  3. Quit the editor and the annotation is saved, but the ann tag isn't.

This sounds quite straightforward to implement, but not a workflow I'm quite inclined to use.

@linuxcaffe
Copy link
Owner Author

linuxcaffe commented Jan 22, 2021

Well, sort of..
I'm imagining using it for any task where you want to have each step fully annotated, like

task add transfer seedlings proj:greenhouse +staff +ann

Then, every time that task is started or stopped or modified, and when it's completed/ deleted, it gets an opportunity for timestamped and detailed progress notes.

the +ann tag stays put

@rc2dev
Copy link
Contributor

rc2dev commented Jan 22, 2021

Gotcha. The problem is that it seems you can't hook to all those events aside from add and modify.

Edit: Just realized that completion is a modify event. Start and stop is not clear from documentation, but I just tested and they also trigger the on-modify hook, so not a problem.

Implementing those hooks should be fairly straightforward. I suggest you take a look at the docs.

@linuxcaffe
Copy link
Owner Author

Thanks Raf! I'm looking at a bunch of other hooks, as a model, and reviewing those docs. I have a WIP hook cooking, cutting and pasting, and remembering what a terrible programmer I am :-) It's fun though, and I think this particular hook could serve a real purpose, so I'll keep poking at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants