[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Is there a way to get all agenda TODOs programmatically?
From: |
Matt Lundin |
Subject: |
Re: [O] Is there a way to get all agenda TODOs programmatically? |
Date: |
Sat, 07 Oct 2017 09:20:26 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hi Marcin,
Marcin Borkowski <address@hidden> writes:
> I'd like to get a list of all agenda TODOs, with titles and due dates.
> Is there something ready in Org/contrib/blogosphere to help me?
This functionality is built into org-mode. The simplest way to get such
a list is to use the agenda (specifically M-x org-todo-list). To display
scheduling information you can customize the variable
org-agenda-prefix-format.
> The problem I'm trying to solve is to make some kind of a metric of how
> I'm doing with my TODO list, like "how many overdue tasks do I have", or
> even better, such a sum weighted by the time after the deadline, or
> something similar.
If you use the "DEADLINE" keyword (M-x org-deadline, bound to C-c C-d),
then the daily/weekly agenda (M-x org-agenda-list) will display any
overdue tasks.
Finally, if you want simply to gather the todo data programmatically for
further processing you can use the function org-map-entries.
Best,
Matt