-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add support for 'waiting' task status marker #292
base: 2.x
Are you sure you want to change the base?
Conversation
Can't get this to work. Couple of problems I notice:
If I'm missing something, please feel free to enlighten me. |
Ah yes, I can see now that the current set of markers I was looking at are actually replacements for different columns:
So in terms of the marker for waiting tasks it actually looks like having a non-zero That is literally the only case I could find where 'having a So I think the basic question is: should the 'wait(ing)' label only be applied to Once we've answered this question we'll automatically have answers to the following:
Personally I'm strongly leaning towards the first option here, as I wouldn't consider the parent template of recurring tasks as truly 'waiting'. So I'd favour a |
Yep, first option makes sense to me, let's do it. |
So in that case I don't think anything needs to be added to the Wondering why the label isn't showing up on your side though, do you have |
I'm a little short on time right now to debug. Think you can put together a dummy install using https://github.com/vit-project/vit/blob/2.x/scripts/generate-dummy-install.sh and a working |
This PR adds a marker for 'waiting' tasks, one of the 5 mutually exclusive task states which was previously not supported for marking.
Just for sake of completeness, here is the current support for marking of tasks in each of the 5 possible states:
completed
already supported (determined via taskstatus
)deleted
already supported (determined via taskstatus
)waiting
implemented by this pull request (also determined via taskstatus
)recurring
already supported but internally this is done by checking therecur
field, rather than thestatus
(a task'sstatus
isrecurring
iff the task has arecur:
date):vit/vit/formatter/markers.py
Lines 20 to 21 in 1d59db8
pending
tasks can't currently be marked, but this is sort of the default/'unmarked' state of tasks so possibly superfluous to add support for a marker for it?