-
Notifications
You must be signed in to change notification settings - Fork 109
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
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 |
Adds selector `:done` that groups items that are done according to `org-done-keywords`.
f184c49
to
df7b07e
Compare
I hope I captured your desire for consistency now. Now there's just plain |
Thanks. The next step would be to add tests for the new selector. Would you be willing to work on that? |
Of course. Maybe I can squeeze in some more time tomorrow after work. |
How is the hash table in |
Yeah, this all uses a custom test framework I made for this package (which I might factor out someday...). First, you should avoid modifying the test data file if at all possible; and if you have to, you should try to make the changes as minimal as possible (i.e. better to modify an entry than add a new one). If you really do have to, you have to, but if not... For updating the tests, there are a few interactive commands in the You can probably figure it out from that explanation and the code, but if you need more details, let me know. Probably the most important thing is to be sure to review the changes to the files before committing them, to catch any unexpected changes in the results. Thanks for your work on this. |
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.