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
project.not:side-quest or urgency>5
no longer working in 3.0.2 for context definition
#3440
Comments
urgency>5
no longer working in 3.0.2 for context definitionproject.not:side-quest or urgency>5
no longer working in 3.0.2 for context definition
ISTR projects can't have a Also, I can't reproduce this:
What does "no longer works" mean? |
Hm, it looks like all of those tasks match |
The tasks at the bottom are from project I think my intention was something like "show me all tasks with urgency above 5 unless it's from project side-quest" I would be fine if it interpreted it as "show me all tasks that are not from project side-quest unless they have urgency above 5" but neither seems to happen. I'm positive it was working as expected in 2.6, do you want me to test it? I have a backup of my exported tasks, I can install it in a venv or something. |
I think I don't think anything related to this changed in the 3.0 release. If you export from 3.0 and re-import the same in 2.6 (maybe just installed in a temporary VM or container), is the output different? |
Huh, I am wrong:
It looks like it's doing a prefix match, which is to say, That said, I can replicate what you are seeing even with 2.6.2:
Task 88 has an urgency of 3.9. It does not appear in To be honest, I have no idea how the filtering works in Taskwarrior, so I'm not sure how much more help I can be. |
Ok, this is very odd, I created this issue because my context wasn't working and when I tried using Then I recreated my 2.6 and it worked just fine, but then I returned back to my machine and it's also working. As you can see no side-quest task in sight, however if I run, @djmitche Try the very same filter but in an actual context and tell me if it works for you as it works for me, I'm not sure what's going on, wasn't the filter of the context supposed to work the same as when used on I gotta say, I'm quite a bit dyslexic and some of it may be my brain malfunctioning. So apologies for that and thank you so much for your help. |
I don't know much about context, to be honest. Maybe there's something in how the filter supplied by the context is combined with the filter on the command line? |
No idea, but I thought context definition and |
Me too :) |
Some funny results: This doesn't do anything:
This work perfectly:
Fails:
Works:
Overall very inconsistent and hard to pick up, I think this needs better documentation and perhaps a re-work. What do you think @djmitche I managed to make default context as I intended: Now I'll not see side-quest's either from projects under side-quest or specifically tagged side-quest tasks, unless they are urgent :) |
I'm glad you got this sorted out for yourself! That certainly looks like a parsing issue. I had always assumed that Taskwarrior kind of puts all of the command-line "words" back together separated by spaces, and then re-parses them. So, in
it parses
it gets the "words" I don't know if there's anyone around who understands the command-line parsing well enough to explain the difference.. |
This worries me a bit, does it mean no one is supporting that part of the code anymore? |
This seems like another zshell issue. Were any of the incorrect results reproducible on bash? I doubt there ever was full zshell support. |
I had:
context.default.read=project.not:side-quest or urgency>5
For my default context, and after upgrading to 3.0.2 (haven't tested 3.0.0/1) it no longer works, how can I use the urgency filter again?
I also tried:
context.default.read="project.not:side-quest or urgency>5"
And it did not work either
More testing:
task list "project.not:side-quest or urgency>5"
Does not work
but
task list "urgency>5"
and
task list "project.not:side-quest"
Work well when used in isolation.
Funniest thing is
priority:H or +next or urgency>5
This works perfectly fine, so I have no clue what's causing it not to work, is it
project.not
or a project with a-
?The text was updated successfully, but these errors were encountered: