Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove DONE tasks from agenda view

Tags:

org-mode

This seems like a common use, so I suspect I'm missing something...

During my daily planning, I add or remove tasks for the day by changing the task's scheduled day (C-c s). I use column view while in the agenda view for the day to see how much I've scheduled for the day. When I complete a task, I mark it DONE.

I don't want the DONE tasks to show up in this view because their time still contributes to the total (I want a running total of what I have left in the day).

But I can't figure-out how to filter by TODO status. '/' lets me filter by tag, but how do I filter by status?

like image 566
Guy Avatar asked Nov 26 '11 21:11

Guy


2 Answers

I think what you want is to set org-agenda-skip-scheduled-if-done to t.

See the Manual: Deadlines and Scheduling. It will hide any scheduled tasks that are already completed.

like image 182
Jonathan Leech-Pepin Avatar answered Nov 08 '22 00:11

Jonathan Leech-Pepin


The accepted answer did not work for me, so I came up with my own. Adding this line to your init file implements the desired behavior:

(setq org-agenda-skip-function-global '(org-agenda-skip-entry-if 'todo 'done))

Here is the source which led me to the answer https://orgmode.org/manual/Special-Agenda-Views.html.

like image 41
Nre Avatar answered Nov 08 '22 00:11

Nre