-
Notifications
You must be signed in to change notification settings - Fork 107
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: {not-}done option for :todo selector #268
base: master
Are you sure you want to change the base?
Add: {not-}done option for :todo selector #268
Conversation
Users can now set `:todo {not-}done` to match to-do keywords that are part of `org-{not-}done-keywords` in that agenda item. This means that when using "TODO | ACHIEVED" in one item but "TODO | DONE" in another, `:todo done` will match both "ACHIEVED" and "DONE".
Hi Krister, Thanks for working on this. I don't necessarily dislike the Then we might need to consider making the What do you think? |
Thanks for taking a look. So you'd express "not done" then with I did take a look at |
No, with
That's a nice idea too.
You can do pretty much whatever you want. Note that there's no such thing as an "agenda item". Org headings represent "entries," and those entries can be searched with
Please see https://github.com/alphapapa/org-ql/blob/b6f8a315e966123fbfd1ac240d35da5c2b48d6ac/org-ql.el#L2077 and https://github.com/alphapapa/org-ql/blob/b6f8a315e966123fbfd1ac240d35da5c2b48d6ac/org-ql.el#L1386 for what I basically mean. org-super-agenda doesn't work exactly the same way, so some reference to org-super-agenda code will be necessary also. I mean that the org-super-agenda user API should be close to the org-ql one, i.e. since org-ql uses |
This is in reference to #267.
Users can now set
:todo {not-}done
to match to-do keywords that are part oforg-{not-}done-keywords
in that agenda item.This means that when using "TODO | ACHIEVED" in one item but "TODO | DONE" in another,
:todo done
will match both "ACHIEVED" and "DONE".Notes
When I run
./makem.sh test
I get errors with and without my changes and I'm not quite sure how to write a test for this new feature. But I'd first like to know if this is going in the right direction in your opinion.