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

description.contains:start matches all kinds of tasks, requires quoting #3359

Open
smemsh opened this issue Apr 11, 2024 · 0 comments
Open

Comments

@smemsh
Copy link
Contributor

smemsh commented Apr 11, 2024

taskwarrior 2.6.2 looks at start and thinks it has more meaning than just the text to search for:

 $ task rc.verbose=on description.has:start export \
   | jq -r '.[].description' \
   | wc -l
Configuration override rc.verbose=on
Filter: ( description ~ start )
430

 $ task rc.verbose=on description.has:start export \
   | jq -r '.[].description' \
   | grep -c start
Configuration override rc.verbose=on
Filter: ( description ~ start )
11

I figured out that I can use description.contains:"start" (with the quotes escaped through to task), and it works correctly, but these quotes should not be needed. It should already be obvious to the parser that because it's an argument to <field>.<operator>: the RHS of : should not be parsed for any special meaning beyond the text itself.

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

1 participant