-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow Agenda.tags to list TODOs only #23
Allow Agenda.tags to list TODOs only #23
Conversation
Hi! Thanks for the contribution. Code looks ok, no much complains there. I investigated a bit how orgmode does it, and noticed there is an Agenda option If you want, I can guide you through code review how to add the new option and provide this functionality, or I can introduce it myself and close this PR in favor of that. |
Hey @kristijanhusak!
That was actually the place where we were passign a boolean explicitly! Fixed it.
That's obviously completely up to you - I'm happy to get my hands dirty with NeoVim. There's one thing though that I think is really worth to preserve - a non-interactive way to call the function. I personally really dislike org-mode menu and keen to use which-key for these purposes. |
8c78cdc
to
e359660
Compare
@chuwy I'll merge this, since it implements the missing feature. Note that I'll update it a bit to not access todo only tags via Thanks for the PR. |
Thanks, @kristijanhusak! I'm planning to start working on |
I pushed the change. You can use it like this for regular tag view: :lua require('orgmode').action("agenda.tags", { tags = "personal" }) and for todo tags like this: :lua require('orgmode').action("agenda.tags_todo", { tags = "personal" }) |
You mean this ? I'm not sure how much new code it will introduce, but if it's a bit too much, you should create it as a separate plugin. Idea is to have built in only what orgmode has in core, and anything additional should go as a plugin. I'll think about the plugins infrastructure and how we could expose some api for plugins. Do not hesitate to add some suggestions on #26 regarding this topic. Once you have something working let me know to check it. I would love to expose a public API that will be stable, since this is still in beta, and some changes regarding the parsing will probably happen. |
Yup. I agree that public API should be the way to go. I'll start doing this separately and let you know what issues I stumble upon. |
Hello!
Just a small disclaimer:
This PR allows users to filter only TODO items with specific keys by:
Above, the second argument becomes a table allowing
Agenda.tags
function to be non-interactive and filter only TODOs. I'm not sure if this is how it supposed to be - I see that you tend to be very conservative in representing Emacs behavior, but I needed that functionality and decided why not.I couldn't find if
Agenda.tags
used anywhere with passing boolean explicitly.P.S. That's a great plugin, thanks!