[Top][All Lists]

[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: Marcin Borkowski
Subject: Re: [O] Is there a way to get all agenda TODOs programmatically?
Date: Sat, 07 Oct 2017 18:43:39 +0200
User-agent: mu4e 0.9.19; emacs 27.0.50

On 2017-10-07, at 16:20, Matt Lundin <address@hidden> wrote:

> 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.

I know (and use) that.  What I want is not /display/, but a /data
structure/ containing that info.

>> 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.

Thanks, that seems to be a good pointer.  I'll check it out.

> Best,
> Matt


Marcin Borkowski

reply via email to

[Prev in Thread] Current Thread [Next in Thread]