emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Making an agenda that includes scheduled-for-later tasks?


From: Stig Brautaset
Subject: Re: [O] Making an agenda that includes scheduled-for-later tasks?
Date: Fri, 25 Jan 2019 21:52:06 +0000

Leo Gaspard <address@hidden> writes:
> Hello all!
>
> I am trying to make an agenda view of all tasks that don't have the
> :Effort: property set, including tasks that are scheduled for later.
>
> My init.el files includes the following lines (of interest is the "E"
> agenda):
> ```
> (setq org-agenda-custom-commands
>       '(("U" "Unscheduled tasks"
>        todo '("TODO" "WAITING")
>        ((org-agenda-overriding-header "Unscheduled tasks")
>         (org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled))))
>       ("E" "Effortless tasks"
>        todo '("TODO" "WAITING")
>        ((org-agenda-overriding-header "Effortless tasks")
>         (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp 
> ":Effort:" 'todo '("APPT")))))))
> ```
>
> However, for some reason only tasks that are either not scheduled or
> scheduled for some time in the past show up in this agenda.

Does changing your "E" entry to this help at all?

,----
| (setq org-agenda-custom-commands
|       '(("U" "Unscheduled tasks"
|        todo '("TODO" "WAITING")
|        ((org-agenda-overriding-header "Unscheduled tasks")
|         (org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled))))
|       ("E" "Effortless tasks"
|        todo '("TODO" "WAITING")
|        ((org-agenda-overriding-header "Effortless tasks")
|         (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp 
":Effort:" 'todo '("APPT")))
|         (org-agenda-todo-ignore-scheduled nil)
|         (org-agenda-todo-ignore-deadlines nil)
|         (org-agenda-todo-ignore-timestamp nil)))))
`----

By the way, the documentation for the `org-agenda-custom-commands'
variable says that the third entry should be "a single keyword for TODO
keyword searches", so the '("TODO" "WAITING") you have may be partly why
things are not working how you expect? You may want to try a compound
one like this:

,----
| (setq org-agenda-custom-commands
|       '(("U" "Unscheduled tasks"
|        todo '("TODO" "WAITING")
|        ((org-agenda-overriding-header "Unscheduled tasks")
|         (org-agenda-skip-function '(org-agenda-skip-entry-if 'scheduled))))
|       ("E" "Effortless tasks"
|        ((todo "TODO")
|         (todo "WAITING"))
|        ((org-agenda-overriding-header "Effortless tasks")
|         (org-agenda-skip-function '(org-agenda-skip-entry-if 'regexp 
":Effort:" 'todo '("APPT")))
|         (org-agenda-todo-ignore-scheduled nil)
|         (org-agenda-todo-ignore-deadlines nil)
|         (org-agenda-todo-ignore-timestamp nil)))))
`----

Regards,

Stig



reply via email to

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